User Tools

Site Tools


add_a_user_to_an_existing_group

Differences

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

Link to this comparison view

Next revision
Previous revision
add_a_user_to_an_existing_group [2016/01/15 16:17] – created ssm2017add_a_user_to_an_existing_group [2022/02/07 13:29] (current) – external edit 127.0.0.1
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>cli debian}} {{tag>cli debian}}
add_a_user_to_an_existing_group.1452871076.txt.gz · Last modified: (external edit)