On my webserver i have a directory www that has the permission
drwxrwxr-- and user:group root www-data
so that apache can access it. Now i have added my account to the group www-data with
sudo usermod -g www-data myuser
and if i do 'groups' www-data is among them, but when i try to simply cd into it i get Permission denied. If i change the user to myuser or set the group to some other group i'm a member of; i can get in.
So am i missing something?
