[9000] in Athena Bugs
(any) Version 7.3P: AFS ignores mode bits on directories
daemon@ATHENA.MIT.EDU ("Mark W. Eichin")
Fri Feb 21 09:48:19 1992
Date: Fri, 21 Feb 92 09:47:56 -0500
From: eichin@Athena.MIT.EDU ("Mark W. Eichin")
To: bugs@Athena.MIT.EDU
System type, version: (any) Version 7.3P
System name: tsx-11
What's wrong:
AFS supposts some use of unix mode bits (as I recall, the upper three
bits are are "and"ed with the access provided by the ACL, so chmod 0
on a file means no one can read it directly...) However, it doesn't
appear to do this for directories.
tsx-11+% pwd
/afs/athena.mit.edu/user/e/i/eichin
tsx-11+% mkdir oof
tsx-11+% touch oof/zot
tsx-11+% ls -la oof
total 17
drwxr-xr-x 2 eichin wheel 2048 Feb 21 09:43 ./
drwxrwxrwx 54 eichin wheel 14336 Feb 21 09:43 ../
-rw-r--r-- 1 eichin wheel 0 Feb 21 09:43 zot
tsx-11+% chmod 0 oof
tsx-11+% ls -la oof
total 17
d--------- 2 eichin wheel 2048 Feb 21 09:43 ./
drwxrwxrwx 54 eichin wheel 14336 Feb 21 09:43 ../
-rw-r--r-- 1 eichin wheel 0 Feb 21 09:43 zot
And yet:
tsx-11+% chmod 0 oof/zot
tsx-11+% cat oof/zot
oof/zot: Permission denied
What should have happened:
It would be nice if AFS were consistent; I noticed this particular one
because the TCL/TK test suite specifically tries something like it in
order to test error reporting. It would also be nice if this were in
user documentation somewhere.
_Mark_