why is it that when I execute groups the output doesn't contain the adm group, while the output of groups $USER has it? The user is supposed to be in that group.

link|improve this question

Similar to this: unix.stackexchange.com/questions/6387/… – Tshepang Feb 13 '11 at 18:26
feedback

1 Answer

up vote 5 down vote accepted

If you have just added a user to a group, you will need a log out and log back in in order to acquire the new credentials. For example:

$ id
uid=500(lars) gid=500(lars) 
$ groups
lars
$ sudo usermod -G wheel,libvirt,mock lars
$ groups
lars
$ groups lars
lars : lars wheel libvirt mock

And if I log out and log back in:

$ groups
lars wheel libvirt mock
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.