Too restrictive permissions?

Harald Barth haba at pdc.kth.se
Mon Feb 21 12:17:22 CET 2000



When you don't have the r bit for your directory, you should not be
able to se stat data for your files. ls -l or ls --color needs to stat
your files. However, there is a bug in Transarc's AFS which lets you
see cached stat data anyway and might confuse things when you analyze
what is the correct behaviour:

Example running Transarc AFS on AIX4:

1) No tokens whatsoever:

r11n07:~$ ls -l summary1.ps
ls: summary1.ps: 

2) Get tokens:

r11n07:~$ kauth haba
haba at NADA.KTH.SE's Password: 

3) Stat:

r11n07:~$ ls -l summary1.ps
-rw-------   1 haba     wheel           0 Jan 24 11:01 summary1.ps

4) Throw away tokens:

r11n07:~$ kdestroy 
Tickets destroyed.
r11n07:~$ unlog

5) Stat again

r11n07:~$ ls -l summary1.ps
-rw-------   1 haba     wheel           0 Jan 24 11:01 summary1.ps

Oh, now we can! 

6) Clean cache

r11n07:~$ fs flushv .

7) Try again:

r11n07:~$ ls -l summary1.ps
ls: summary1.ps: 

See...
Harald.





More information about the Arla-drinkers mailing list