Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a folder that has the following access permisions:

drwxrw-rw- tator nogroup 4096 jun 11 15:20 main

As you can see I have chmod it to 766 and it is owned by tator.

But when I tried to access to that folder on a service that is running on different account it gets permission denied. My service can get to all the folders that are levels above "main" folder but it cannot access "main" folder despite my chmod command.

How can I allow this folder to be accessible by any users?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You need the execute permission on directories to view them. Try chmod 777 on the folder.

share|improve this answer
So I need to grant Execute access for read?? Then what good does granting read do? –  CodingTwinky Jun 11 '13 at 15:51
Read this: hackinglinuxexposed.com/articles/20030424.html –  snapshoe Jun 11 '13 at 16:06

To access a folder, the user / group need to have the x flag on it.

So, in your folder, you would need one of the following:

  • to set the x flag to the group / anybody , so it becomes a drwxrwxrwx

  • change the owner of the folder to the process you're trying to execute

  • put the user of the process you're trying to execute in the group, and give the group the x flag

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.