Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

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

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

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.