Linux group management exercises

● Create a new group stuff and require the group id to be 1010.
● Check the last line of the /etc/group file to see how it is set.
Insert picture description here

● Create new users user1, user2, default settings
Insert picture description here

● Check the last 3 lines of the /etc/group file, what conclusions can be obtained
Insert picture description here

● Create a new user user3, and set his basic group and additional group to stuff

● Check the last 5 lines in the /etc/group file to see what has changed. Is there a user3 group?
Insert picture description here

● Add user1 to the stuff group
● Check whether the stuff group member list in the /etc/group file has changed, and whether the group id of user1 in the /etc/passwd file has changed
Insert picture description here

● Reset the list of stuff group members to user2
Insert picture description here

● Delete user user2 in the group stuff
Insert picture description here

● Delete the group stuff.
Insert picture description here

Guess you like

Origin blog.csdn.net/m0_46653702/article/details/109379565