Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I added my user to the www-data group. I chmodded a certain directory to 774 (-R, recursively) so only the owner and the group can change something.

Yet my user can't even access it. What am I missing? Here's my ls -alh output:

drwxrwxr-- 13 www-data www-data 4,0K 2011-03-28 23:10 mydir
share|improve this question
up vote 2 down vote accepted
  • What does id -a return? You may need to start a new shell or run newgrp, since your existing shells will not automatically get the new group permissions.
  • 774 permissions will probably not do what you want. I suspect you want 775. Without execute permissions, other users will not be able to search the directory.
share|improve this answer
The old "logout" "login" procedure. :-) – Joseph Kern Mar 29 '11 at 16:49

All I can think of is that the upper directory doesn't have permissions correctly set.

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.