Group Membership Strangeness
I'm on SUSE 9.3 on a desktop machine. I created a new group (wworkers) and added myself (joe). But I found that I could not write to a directory that was group-writable for that group. On investigating, I found: joe@myhost:/srv/www/vhosts> whoami joe joe@myhost:/srv/www/vhosts> groups users dialout video joe@myhost:/srv/www/vhosts> groups joe joe : users dialout video wworkers Note that 'wworkers' is in the output for 'groups joe' but not for 'groups'. Similar results for 'id': joe@myhost:/srv/www/vhosts> id uid=1000(joe) gid=100(users) groups=16(dialout),33(video),100(users) joe@myhost:/srv/www/vhosts> id joe uid=1000(joe) gid=100(users) groups=100(users),16(dialout),33(video),1000 (wworkers) Any ideas about what might be going on here?
Robert Morrison wrote:
Any ideas about what might be going on here
Yes, you haven't logged out since you added yourself to that group. You need to do that. Running 'groups joe' will read what is in the groups file, while just running 'groups' will look at what is actually currently active for your session. So log out and back in, and things will work
participants (2)
-
Anders Johansson
-
Robert Morrison