LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Directory execute permission (https://www.linuxquestions.org/questions/linux-newbie-8/directory-execute-permission-803987/)

MTK358 04-24-2010 04:11 PM

Directory execute permission
 
I was always confused about the way it says that the execute permission for a directory means "able to list it". I just don't get it.

Does no exec permission mean "still able to read files from in the directory, but not able to find out what files it contains" or what?

stureedy 04-24-2010 04:21 PM

The execute bit for directories means "can cd into the directory." The read bit means "can list the files."

Hope that helps!
Stu..

grail 04-24-2010 10:53 PM

Personally, to get my head around it, I just created a directory/file and started at the left and changed bits until
I had been through each combination. Along with this I also had three users, creator, same group and some bozo not related either way.
I then tested each scenario with each.

Yes it was long and drawn out process, but hey .. got to understand it :)


All times are GMT -5. The time now is 09:10 AM.