Linux Groups

Last modified: 
Thursday, June 2nd, 2016
Topics: 
Linuxsysadmin

Some random notes about working with Linux user groups.

Add a Group

groupadd <groupname>

Add User to a Group

usermod -a -G <groupname> <username>

The user won't immediately be found in the group. In order to make this group active, he or she must log out and log back in again. If it is daemon, you can stop and start the process to load in the new settings:

service my_service stop
service my_service start

See also http://serverfault.com/a/98917


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.