Hello.
I have a user (let's call him John) who is not able to list contents of several 777 directories even though it appears he has permission to.
Case in point, as root:
Code:
server:/media # cd nss
server:/media/nss # ls -la
total 20
drwxr-xr-x 8 root root 4096 Nov 16 14:58 .
drwxr-xr-x 3 root root 4096 Feb 1 16:08 ..
drwxrwxrwx 1 root root 0 Jan 20 09:34 DOCUCTR
drwxrwxrwx 1 root root 0 Jan 20 09:34 ENG
drwxrwxrwx 1 root root 0 Feb 10 11:31 QIS
drwxrwxrwx 1 root root 0 Jul 22 2010 VOL1
drwxrwxrwx 3 root root 4096 Jul 19 2010 VOL1_SAVE
drwxrwxrwx 1 root root 0 Feb 8 10:43 VOL4
-rw-r--r-- 1 root root 6 May 25 2010 ncpcon.err
-rw-r--r-- 1 root root 77 May 25 2010 nul
server:/media/nss #
as john:
Code:
johns@server:~> cd /media/nss
john@server:/media/nss> ls -la
/bin/ls: QIS: Permission denied
/bin/ls: VOL4: Permission denied
/bin/ls: ENG: Permission denied
/bin/ls: DOCUCTR: Permission denied
/bin/ls: VOL1: Permission denied
total 20
drwxr-xr-x 8 root root 4096 2010-11-16 14:58 .
drwxr-xr-x 3 root root 4096 2011-02-01 16:08 ..
-rw-r--r-- 1 root root 6 2010-05-25 16:13 ncpcon.err
-rw-r--r-- 1 root root 77 2010-05-25 16:13 nul
drwxrwxrwx 3 root root 4096 2010-07-19 11:23 VOL1_SAVE
john@server:/media/nss>
If I use ls -a or strictly ls as john, I can list the contents of the nss directory:
Code:
john@server:/media/nss> ls -a
. .. DOCUCTR ENG ncpcon.err nul QIS VOL1 VOL1_SAVE VOL4
That says to me that I have an issue listing permissions. Fine, I don't really need john to be able to list permissions. I want him to have rwx access to /media/nss/ENG which as you can see from my listing as root shouldn't be a problem since the perms on that dir are 777.
I am able to CD into the ENG directory or any other directory or subdirectory in /media/nss that has equivalent 777 perms, but once in the directories I can't list the contents:
Code:
john@server:/media/nss> cd ENG
john@server:/media/nss/ENG> ls
/bin/ls: .: Permission denied
john@server:/media/nss/ENG> ls -a
/bin/ls: .: Permission denied
john@server:/media/nss/ENG> ls -la
/bin/ls: .: Permission denied
john@server:/media/nss/ENG> ls -l
/bin/ls: .: Permission denied
john@server:/media/nss/ENG> cd ../VOL1
john@server:/media/nss/VOL1> ls
/bin/ls: .: Permission denied
john@server:/media/nss/VOL1> cd ../
john@server:/media/nss>
I can get anywhere and do anything I want under the media/nss folder as john, except listing files. I even tried using an ACL i.e.
Code:
setfacl -R -m u:john:rwx nss
Any ideas why this isn't working? Thanks!