Tue Dec 20 08:27:38 EST 2011

Unix Reference: Add User To A Group

usermod -a -G GID1,GID2,…GIDn USERNAME

  • USERNAME must already exist
  • The one or more GIDs must already exist
  • Omitting the -a will first remove the user from all groups except their login group and then add them to groups GIDs.

Posted by Neil Smithline | Permanent link | File under: reference, unix-reference
blog comments powered by Disqus