Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Similar to this:… – Tshepang Feb 13 '11 at 18:26
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
$ sudo usermod -G wheel,libvirt,mock lars
$ groups
$ groups lars
lars : lars wheel libvirt mock

And if I log out and log back in:

$ groups
lars wheel libvirt mock
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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