Unreadable directory
Posted: March 27th, 2011, 2:38 pm
Hi
A directory on my server became unreadable to the owner.
I've tried "chmod o+r ..." but still always get status of "d-wxrwxrwx"
If enters as SU the directory looks OK
If going to the graphical file manager (under VNC), the directory symbol has a small "X" on the top right
which means UNREADABLE
Other directories and shares are fine. . .
Could anyone please help me rid of that unreadability?
here is the commands sequence:
Computer name: Caroline
Username: yoram
Unreadable directory: libs (it's under /mnt/storage)
1. Within libs, cant read files
yoram@CAROLINE:/mnt/storage/libs$ ls -l
ls: cannot open directory .: Permission denied
2. read files with sudo
yoram@CAROLINE:/mnt/storage/libs$ cd ../
yoram@CAROLINE:/mnt/storage$ sudo ls -l
total 356736
drwxrwxr-x 5 yoram yoram 4096 2011-03-26 21:31 backups
drwxr-xr-x 3 yoram yoram 4096 2011-02-21 00:40 BitTorrent
-rwxr-xr-x 1 yoram yoram 179 2011-03-03 19:18 deluge-daemon
-rw-r--r-- 1 yoram yoram 364904448 2011-02-26 19:15 Glee.S02E10.HDTV.XviD-LOL.[ VTV].avi
d-wxrwxrwx 11 yoram yoram 4096 2011-03-19 20:38 libs
drwx------ 2 root root 16384 2011-02-16 22:46 lost+found
3. try to change permissions with -R, no success
yoram@CAROLINE:/mnt/storage$ sudo chmod -R o+r libs
yoram@CAROLINE:/mnt/storage$ ls -l
total 356736
drwxrwxr-x 5 yoram yoram 4096 2011-03-26 21:31 backups
drwxr-xr-x 3 yoram yoram 4096 2011-02-21 00:40 BitTorrent
-rwxr-xr-x 1 yoram yoram 179 2011-03-03 19:18 deluge-daemon
-rw-r--r-- 1 yoram yoram 364904448 2011-02-26 19:15 Glee.S02E10.HDTV.XviD-LOL.[ VTV].avi
d-wxrwxrwx 11 yoram yoram 4096 2011-03-19 20:38 libs
drwx------ 2 root root 16384 2011-02-16 22:46 lost+found
4. try again , same results.
yoram@CAROLINE:/mnt/storage$ chmod o+r libs
yoram@CAROLINE:/mnt/storage$ ls -l
total 356736
drwxrwxr-x 5 yoram yoram 4096 2011-03-26 21:31 backups
drwxr-xr-x 3 yoram yoram 4096 2011-02-21 00:40 BitTorrent
-rwxr-xr-x 1 yoram yoram 179 2011-03-03 19:18 deluge-daemon
-rw-r--r-- 1 yoram yoram 364904448 2011-02-26 19:15 Glee.S02E10.HDTV.XviD-LOL.[ VTV].avi
d-wxrwxrwx 11 yoram yoram 4096 2011-03-19 20:38 libs
drwx------ 2 root root 16384 2011-02-16 22:46 lost+found
yoram@CAROLINE:/mnt/storage$
Yoram
A directory on my server became unreadable to the owner.
I've tried "chmod o+r ..." but still always get status of "d-wxrwxrwx"
If enters as SU the directory looks OK
If going to the graphical file manager (under VNC), the directory symbol has a small "X" on the top right
which means UNREADABLE
Other directories and shares are fine. . .
Could anyone please help me rid of that unreadability?
here is the commands sequence:
Computer name: Caroline
Username: yoram
Unreadable directory: libs (it's under /mnt/storage)
1. Within libs, cant read files
yoram@CAROLINE:/mnt/storage/libs$ ls -l
ls: cannot open directory .: Permission denied
2. read files with sudo
yoram@CAROLINE:/mnt/storage/libs$ cd ../
yoram@CAROLINE:/mnt/storage$ sudo ls -l
total 356736
drwxrwxr-x 5 yoram yoram 4096 2011-03-26 21:31 backups
drwxr-xr-x 3 yoram yoram 4096 2011-02-21 00:40 BitTorrent
-rwxr-xr-x 1 yoram yoram 179 2011-03-03 19:18 deluge-daemon
-rw-r--r-- 1 yoram yoram 364904448 2011-02-26 19:15 Glee.S02E10.HDTV.XviD-LOL.[ VTV].avi
d-wxrwxrwx 11 yoram yoram 4096 2011-03-19 20:38 libs
drwx------ 2 root root 16384 2011-02-16 22:46 lost+found
3. try to change permissions with -R, no success
yoram@CAROLINE:/mnt/storage$ sudo chmod -R o+r libs
yoram@CAROLINE:/mnt/storage$ ls -l
total 356736
drwxrwxr-x 5 yoram yoram 4096 2011-03-26 21:31 backups
drwxr-xr-x 3 yoram yoram 4096 2011-02-21 00:40 BitTorrent
-rwxr-xr-x 1 yoram yoram 179 2011-03-03 19:18 deluge-daemon
-rw-r--r-- 1 yoram yoram 364904448 2011-02-26 19:15 Glee.S02E10.HDTV.XviD-LOL.[ VTV].avi
d-wxrwxrwx 11 yoram yoram 4096 2011-03-19 20:38 libs
drwx------ 2 root root 16384 2011-02-16 22:46 lost+found
4. try again , same results.
yoram@CAROLINE:/mnt/storage$ chmod o+r libs
yoram@CAROLINE:/mnt/storage$ ls -l
total 356736
drwxrwxr-x 5 yoram yoram 4096 2011-03-26 21:31 backups
drwxr-xr-x 3 yoram yoram 4096 2011-02-21 00:40 BitTorrent
-rwxr-xr-x 1 yoram yoram 179 2011-03-03 19:18 deluge-daemon
-rw-r--r-- 1 yoram yoram 364904448 2011-02-26 19:15 Glee.S02E10.HDTV.XviD-LOL.[ VTV].avi
d-wxrwxrwx 11 yoram yoram 4096 2011-03-19 20:38 libs
drwx------ 2 root root 16384 2011-02-16 22:46 lost+found
yoram@CAROLINE:/mnt/storage$
Yoram