On my web server 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
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.
Am I missing something?