Why is fortune writing to the fortunes.dat file?

Hans Buurman hans at duttnph.UUCP
Mon May 29 17:29:20 AEST 1989


In article <3433 at orca.WV.TEK.COM> jeff at quark.WV.TEK.COM (Jeff Beadles) writes:
>In article <730 at dutrun.UUCP> hans at duttnph.UUCP (Hans Buurman) writes:
>>It's more strange than that. We have sun3 and sun4 clients all running
>>SunOS 4.0.1. All have /usr/games read-only. On the sun3's, this works fine.
>>On sun4's, you get a message:
>>/usr/games/lib/fortunes.dat: Read-only file system
>>There are no other differences between the two fortunes.
>
>This is due to the way that you have /usr/games mounted.
(suggestion to look in /etc/exports on server)

Sorry Jeff, but I can't find any differences.

grep exec /etc/exports
/export/exec/sun3	-ro,access=clients
/export/exec/sun4	-ro,access=clients
 
>If that does not work, look in /etc/fstab on the client.

mizar grep exec /etc/fstab
duttnph:/export/exec/sun3 /usr nfs ro 0 0
 
antares grep exec /etc/fstab
duttnph:/export/exec/sun4 /usr nfs ro 0 0
 
mizar df /usr/games/fortune
Filesystem            kbytes    used   avail capacity  Mounted on
duttnph:/export/exec/sun3
                       84928   61587   14848    81%    /usr

antares df /usr/games/fortune
Filesystem            kbytes    used   avail capacity  Mounted on
duttnph:/export/exec/sun4
                       84928   71671    4764    94%    /usr
 
mizar /usr/games/fortune
A rock pile ceases to be a rock pile the moment a single man
contemplates it, bearing within him the image of a cathedral.
		-- Antoine de Saint-Exupery

antares /usr/games/fortune
/usr/games/lib/fortunes.dat: Read-only file system
 
And, on the server:

ls -l /export/exec/sun[34]/games/lib/fortunes.dat
-rw-------  1 daemon     348056 Apr  9  1988 /export/exec/sun3/games/lib/fortunes.dat
-rw-------  1 daemon     348056 May 29 09:25 /export/exec/sun4/games/lib/fortunes.dat
 
(Of course, the server is a sun4 and has /usr/games r/w !).

>Jeff Beadles		Utek Sustaining Engineering, Tektronix Inc.
>jeff at quark.WV.TEK.COM

Both architectures are running SunOs 4.0.1 Export.

Anybody out there with source ?

	Hans

-----------------------------------------------------------------------------
Hans Buurman                   | hans at duttnph.UUCP
Pattern Recognition Group      |
Faculty of Applied Physics     | mcvax!hp4nl!dutrun!duttnph!hans
Delft University of Technology | tel. 31 - (0) 15 - 78 46 94



More information about the Comp.unix.questions mailing list