Click to See Complete Forum and Search --> : Globally readable directory isn't


TheCatMan
10-09-2001, 10:28 AM
I have a DOS partition mounted at /mnt/dos, which is automounted at boot with umask=001, but it can only be accessed by root. ls reports its permissions as rwxrwxrw-, so why can't I read it as a normal user? I can work around it by manually umounting and remounting to make me the owner, but really I want it to be readable by anyone.
Any ideas?

Joeri Sebrechts
10-09-2001, 10:30 AM
OK, I just verified, and to be able to get a directory listing it needs to be marked readable, like you have, but to actually be able to change into a directory it also needs to be marked executable.

So if you have a dir called foo containing a file called bar. If your dir is marked r-- then you won't be able to do anything with it. If it's marked --x you'll be able to cd to the directory (and to any subdirectories in it that have the correct permissions) but you won't be able to get a directory listing, and if it's marked r-x you'll be able to change into it and get a directory listing.
In other words, make sure that the world permissions for your partition's mount point are executable as well as readable.

[ 09 October 2001: Message edited by: Joeri Sebrechts ]

TheCatMan
10-10-2001, 05:47 PM
:cool: Sorted! Thanks, Joeri