Differences
This shows you the differences between two versions of the page.
| add_a_user_to_an_existing_group [2016/01/15 16:17] – created ssm2017 | add_a_user_to_an_existing_group [2016/03/04 10:51] (current) – ssm2017 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| add the user named tony to the group named ftp | add the user named tony to the group named ftp | ||
| - | <code bash> | + | <sxh bash> |
| usermod -a -G ftp tony | usermod -a -G ftp tony | ||
| - | </code> | + | </sxh> |
| or | or | ||
| - | <code bash> | + | <sxh bash> |
| addgroup tony ftp | addgroup tony ftp | ||
| - | </code> | + | </sxh> |
| add the actually logged in user to the group ftp | add the actually logged in user to the group ftp | ||
| - | <code bash> | + | <sxh bash> |
| sudo adduser `id -un` ftp | sudo adduser `id -un` ftp | ||
| - | </code> | + | </sxh> |
| {{tag> | {{tag> | ||