User Tools

Site Tools


users:add_a_user_to_a_group

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
users:add_a_user_to_a_group [2016/11/18 15:27] – created peterusers:add_a_user_to_a_group [2019/12/04 22:03] (current) – removed peter
Line 1: Line 1:
-====== Users - Add a User to a Group ====== 
- 
-How to add an existing user to existing group.  Using the **-a -G** option, adds user to the supplemental group(s). 
- 
-<code bash> 
-sudo usermod -a -G [groupname] [username] 
-</code> 
- 
-How to change existing user's primary group to www. 
-<code bash> 
-sudo usermod -g www [username] 
-</code> 
-  
-How to verify user settings. 
- 
-<code bash> 
-id [username] 
-</code> 
  
users/add_a_user_to_a_group.1479482879.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki