Vous êtes sur la page 1sur 1

#### TO CREATE A GROUP #####

groupadd
sales
#### TO CHECK THE GROUP ####
tail /etc/group
#### TO ADD A USER IN GROUP ####
useradd s1 ( to create the users )
useradd s2
useradd s3
tail /etc/passwd ( to check the users )
gpasswd -a s1 sales ( to add in group )
tail /etc/group ( to check the users )
#### TO ADD THE MULTIPLE USERS IN GROUP ##
gpasswd -M s1,s2,s3 sales
tail /etc/group ( to check )
### TO REMOVE A USER IN GROUP ####
gpasswd -d s2 sales
tail /etc/group ( to check )
#### TO RENAME A GROUP ####
groupmod -n finance sales
tail /etc/group ( to check )
### TO REMOVE A GROUP ####
groupdel
finance
tail /etc/group ( to check )