There are three types of users in Linux
Root User: Super Administrator
System User: Linux required to run some programs is not recommended to modify
General users: general modification of this
Using the command Groupadd, add user groups, parameters: Group name
In the file/etc/group, add a record
Using the command Groupdel, delete the group, parameter: group name
Using the command Groupmod, modify the group ID, parameter:-G new Group ID group name;
Manage users
Using the command useradd, add user, parameter: User name
For example: Useradd test, a group test:x:502 is generated in the/etc/group file:
A user is generated in the/etc/passwd file Test:x:502:502::/home/test:/bin/bash
A password is generated in the/etc/shadow file test:!! : 16931:0:99999:7:::
Use command passwd, set password, parameter: username
Using the command Userdel, delete user, parameter:-R (delete home directory) user name; home directory in/home/user name
Use Test2 's account to not enter test's home directory
[Linux] Linux systems (user management)