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.

Why can't I access a directory that I should have access to by group? My user belongs to the group www-data, and the directory has permissions granted for this group. But I cannot access it.

markus@hemulen:~$ ls -la
drwxrwx--- 2 www-data www-data 4096 2009-10-11 21:28 test

markus@hemulen:~$ groups markus 
markus www-data admin

markus@hemulen:~$ cd test
-bash: cd: test: Permission denied
share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

If you just added yourself to the group, you have to log out and log back in again to get the change to apply. I've been caught by that many times...

share|improve this answer
    
Thank you very much! Will remember this until next time –  Znarkus Oct 12 '09 at 16:53
add comment

try just "groups" without "markus", to see if the current shell knows the groups you belong to.

share|improve this answer
    
Thanks, useful! –  Znarkus Oct 12 '09 at 16:53
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.