Group administration in Linux System

Group add 
# groupmod [tab tab] --- To see the existing group in this linux operating system
# groupadd marketing --- Add a new group marketing. 
# usermod –a –G admins geek --- Add user geek to the group admins.
# usermod -G ftp jsmith --- Add user jsmith to ftp group

Switch user from one group to another group 
# usermod -g ftp jsmith --- Switch user jsmith to ftp 

Add a user to Multiple Groups  
# usermod -a -G ftp, admins, othergroup geek --- Add geek user to ftp, admins, othergroup at a time. 

Delete User from the group
# deluser <username> <groupname> --- Removing a user from user group 


Post a Comment