KEMBAR78
Group Commands-Linux | PDF
0% found this document useful (0 votes)
23 views1 page

Group Commands-Linux

group

Uploaded by

RaJu SinGh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

Group Commands-Linux

group

Uploaded by

RaJu SinGh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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 )

You might also like