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 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
add comment

2 Answers

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
1  
The old "logout" "login" procedure. :-) –  Joseph Kern Mar 29 '11 at 16:49
add comment

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

share|improve this answer
add comment

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.