LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-24-2010, 05:11 PM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
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?

Last edited by MTK358; 04-24-2010 at 05:13 PM.
 
Old 04-24-2010, 05:21 PM   #2
stureedy
Member
 
Registered: Jul 2009
Location: Lexington, Kentucky, USA
Distribution: Slackware
Posts: 37
Blog Entries: 4

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

Hope that helps!
Stu..
 
Old 04-24-2010, 11:53 PM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,425

Rep: Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
read and execute permission ramkernel Linux - Newbie 5 03-06-2010 10:02 AM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
How can set execute permission. deepak_message Linux - Software 3 11-03-2007 10:22 AM
php execute permission 70mas Linux - Software 1 04-05-2007 09:05 AM
vfat execute permission Akuji Slackware 3 08-20-2004 01:38 PM


All times are GMT -5. The time now is 02:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration