Tuesday, December 29, 2015

add a existing user to existing group


usermod, id, Command Line, Linux Ubuntu, 2015 1229


To add an existing user jerry to ftp supplementary/secondary group with usermod command using -a option ~ i.e. add the user to the supplemental group(s). Use only with -G option:
 
  usermod -a -G ftp jerry
  id jerry
 
To change existing jerry's primary group to www, enter:
 
  usermod -g www jerry 
 
 

No comments:

Post a Comment