I've come into something strange.
I just added a user to the www-data group, the user appears in both /etc/group and /etc/group-, however when I use the groups or id commands the group isn't listed; and the user can't chgrp a file into www-data.
What could be the problem? I'm using a Debian testing machine, never had this kind of problem.
Answer
Group membership is only processed on login. You can either:
- re-login to pick up the new group
- use
newgrp www-datato run a new shell with gid set towww-data
Comments
Post a Comment