User group management
cat /etc/group: view user groups
groupadd Hades: Add a user group named Hades
groupmod -n Ylem Hades: Modify the group name of the user group Hades to Ylem
groupdel Ylem: delete user group Ylem
groups: View the username of the current user
groups Ylem: View Ylem's user groups
User Management
cat /etc/passwd: view users
useradd John: add a user named John
useradd John -c student: Specify a commentary [c] (student) description for John {if no group is specified, the system will automatically create a John group}
useradd John -g 1st: Specify the user group to which John belongs [g] as 1st
useradd John -c student -g 1st: Specify a commentary [c] (student) description for John, and specify the belonging user group [g] as 1st
usermod -l Hades Ylem: Change the username Ylem to Hades
usermod -c Codeman Ylem: Modify the user description of user Ylem to Codeman
usermod -g root Ylem: Modify the user group of user Ylem to root
userdel Ylem: delete user Ylem
passwd: set the password for the user
passwd Ylem: Set a password for Ylem
If there is any infringement, please contact by email, I am sorry.
This is only for learning personal notes, and if there is any reprint, please indicate the source.
Contact Email: [email protected]
Learn to test the penguin group together (chat, water group, do not disturb advertising): 826471103