Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have some weirdness with my users/permissions. I currently have a user named world that has the groups world www-data admin. I have a directory at /var/abc which has the permissions 0644 or rw-r--r--, the ownership of that directory is world:www-data.

For some reason, when I try to change into or list that /var/abc directory I get permission denied, however if I add the executable permission to the user, so it becomes 0744 or rwxr--r-- I am allowed to access everything.

I can't figure out what is going on, could anyone shed some light?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

What you are seeing is normal and expected behaviour. The x bit is required on a directory to enter it, search through it, or execute a program in it. As you are trying to cd into the directory then without the x bit being set you can't. When you set the permissions to 744, your user world who is the owner of the directory then has full control and as you observed an do what they want.

share|improve this answer
    
I thought that might be it, though wasn't sure. Thanks!! :) –  tarnfeld Jan 8 '12 at 13:57

Your Answer

 
discard

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.