users:add_a_user_to_a_group
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
users:add_a_user_to_a_group [2016/11/18 15:27] – created peter | users: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. | ||
- | |||
- | <code bash> | ||
- | sudo usermod -a -G [groupname] [username] | ||
- | </ | ||
- | |||
- | How to change existing user's primary group to www. | ||
- | <code bash> | ||
- | sudo usermod -g www [username] | ||
- | </ | ||
- | |||
- | How to verify user settings. | ||
- | |||
- | <code bash> | ||
- | id [username] | ||
- | </ | ||
users/add_a_user_to_a_group.1479482879.txt.gz · Last modified: 2020/07/15 09:30 (external edit)