You are on page 1of 1

chapter 5: user management and group management

group management

1.#groupadd student
verification:
#grep student /etc/group
2.to assign password in to the group
#gpasswd student
enter two times password
verification:
#grep studnt /etc/gshadow
3. to change the existing group name
#groupmod -n <new name> <old name>
#groupmod -n lecture student
verification:
#grep student /etc/group >...nothing to show
#grep lecture /etc/group

4.to add single user into group


#useradd ali
#gpasswd -a ali lecture

#grep lecture /etc/group

5.to add multiple users into group


#useradd jama
#useradd farah
#useradd asho

#gpasswd -M jama,farah,asho lecture


verification:
#gpasswd lecture /etc/group

6.deleting group
#groupdel <group name>
#groupdel lecture
END

Exercise.

1.create group named shopping.


2.assign password into group.
3.add users into group omar,nor,maryan,abdullahi,asiyo.
4.change group named shopping into tukanliyaal.

You might also like