[OpenAFS-devel] Permission bug?

Markus Suvanto markus.suvanto@gmail.com
Thu, 21 Jan 2010 11:24:20 +0200


Hello

I have try to update ftp server and face strange problem:
Both have same permission but newer openafs version
(1.4.11 from gentoo ebuild) don't work like old one
(1.4.6_p20080222 from gentoo ebuild)
Especially li-permission don't let me copy files anymore
but lir does.

I need old behaviour because I want to set up upload
directory so that no one read/download uploaded files.

Is this bug or changed feature (or gentoo ebuild fault)?

-Markus


Example:

Old  working  ftp server:

upload >fs la .
  visitor li

upload >cp /tmp/testfile .

upload >ls -alh
total 30M
drw-r--r-- 2 bin   bin   2.0K Jan 21 10:58 .
drw-r--r-- 4 bin   bin   2.0K Jan 12  2005 ..
-rw-r--r-- 1 10135 users  30M Jan 21 10:58 testfile


But new ftp server:

upload >fs la .
  visitor li

upload >cp /tmp/testfile .
cp: cannot fstat `./testfile': Permission denied

upload >ls -alh
ls: cannot access testfile: Permission denied
total 4.0K
drw-r--r-- 2 bin bin 2.0K Jan 21 11:03 .
drw-r--r-- 4 bin bin 2.0K Jan 12  2005 ..
-????????? ? ?   ?      ?            ? testfile


New ftp server with lir:

upload >fs la .
  visitor rli

upload >cp /tmp/testfile .

upload >ls -alh
total 30M
drw-r--r-- 2 bin   bin   2.0K Jan 21 11:21 .
drw-r--r-- 4 bin   bin   2.0K Jan 12  2005 ..
-rw-r--r-- 1 10135 users  30M Jan 21 11:21 testfile