[70] in Info-AFS_Redistribution
A question on protection semantics.
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Fri Feb 8 09:23:36 1991
Date: Fri, 8 Feb 1991 15:00:02 +0100
From: Christer Bernerus <bernerus@cs.chalmers.se>
To: info-afs@transarc.com
I just stumbled into the following:
Become root on a SUNOS4.1 (SPARC) system and...
%cat >/tmp/foo
dskldvjhaslkjdhvsljdvhsdvs
^D
%chmod 377 /tmp/foo
%cd /tmp
%tar cf foo.tar foo
%cd /afs/chalmers.se/cs/system/vax_reno
%fs la .
Access list for . is
Normal rights:
system:administrators rlidwka
system:anyuser rlidwk
%tar xfv /tmp/foo.tar
tar: blocksize = 8
x foo, 27 bytes, 1 tape blocks
tar: foo: HELP - extract write error: I/O error
%ls -l foo
--wxr-xr-x 1 root daemon 0 Feb 8 14:53 foo
%cd /nfs/u4
%tar xfv /tmp/foo.tar
x foo, 27 bytes, 1 tape blocks
%ls -l foo
--wxr-xr-x 1 root daemon 69 Feb 8 14:28 foo
%
For some reason, tar isn't allowed to WRITE in the file when the
permission flags are -???????? i.e. no READ permission on the file. It
works of for ufs and nfs, but for AFS ... Nope!
If someone could explain this behaviur to me, i'd be happy. If someone
could tell me how to work around it, I'd be even more happy.
Chris.