[comp.unix.wizards] NFS strangeness on Suns

tamir@ucla-cs.UUCP (06/20/87)

You have two Suns: sun1 and sun2.  Your home directory is on sun1.
sun1 is exporting the file system containing your home directory on sun2.

Login to sun1 and run
% echo this is a test > foo
% chmod 600 foo

Logout of sun1.
Login to sun2.  Don't touch file foo.
su to root.
% su

Run
# cat foo

You will get
cat: read error: Permission denied
since with an access from a remote root sun1 maps
the uid from 0 to -2 (as documented).

Now, exit from the root shell
# exit

Run (you are still on sun2)
% cat foo

You will get
cat: read error: Permission denied

So, you are not allowed to read your own file.
Apparently there is some caching of "credentials" going on.
Obviously it does not work very well . . .

			   Yuval Tamir

Internet: tamir@cs.ucla.edu
    UUCP: ...!{ihnp4,ucbvax,sdcrdcf,trwspp,randvax,ism780}!ucla-cs!tamir