troubleshooting Question

Permissions

Avatar of farzanj
farzanjFlag for Canada asked on
Unix OSLinux
7 Comments2 Solutions627 ViewsLast Modified:
What exactly is execute permission of a directory?  I always thought that I needed execute permission if I had to go into the directory by 'cd'.  I want to know why the directory needs only read permission for ls but needs execute permission in addition to read for doing ls -l

To elaborate consider the following example.
I am a user and directory dir is owned by me.  There are three files a, b and c in it.
If the permission of dir is dr-------- then I can do "ls dir"
But when I do ls -l dir, it doesn't show me any details other than the file names.  Why does the directory need execute permissions for getting the i-node details?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros