Unable to list a directory because it has no read perm? I thought only 'x' matters for directories listing?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unable to list a directory because it has no read perm? I thought only 'x' matters for directories listing?
all directories in path /test/book/coffee have 'x' bit set for user/group/others. I am user 'gamer' so when I use list command I am 'others' in user-group-others. So why am I unable to list it if 'others' doesn't have read permission?
Here is a screenshot uploaded to imgbb: https://ibb.co/THD7HsT
p.s I didn't bother hiding ip, its my vpn's shared ip
I think that in that those r for read and w for write permissions are important. X is for execute permission I think. You have to set readable for all. I am not an expert but hope this helps. X E.
I think that in that those r for read and w for write permissions are important. X is for execute permission I think. You have to set readable for all. I am not an expert but hope this helps. X E.
According to all information I have found execute bit permission matters for listing only. And all the parent directories have to have execute permission for that user group(user, group or others - in my case others). So I am not exactly noob but I have no idea why it is acting this way.
The execute permission grants the ability to access file contents and meta-information if its name is known, but not list files inside the directory unless the read permissions is set also. ll is an alias for 'ls -l' which is not allowed without read permissions.
Okay wow, I must have caught something wrong because I was so sure I read that 'x' was for listing dir contents.. I never assumed I could navigate through filesystem without being able to see its contents. But now I realize that directory is also a file in linux and has its functionality and permissions too... Thanks for clearing that up!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.