Front User Group
Add User Group command
Groupadd
We just need to remember some common parameters.
Groupadd-g 8888 Syz #添加 GID 888 user Group
View grep syz/etc/group after adding complete
The point is, passwd, this command.
Used to change the password
Passwd-d This is the delete password
With passwd This command, root can change any user's password, and is not required to lose the original password
Password for other user passwords, and can only change their own password
Passwd-l lock account, cannot log in, cannot change password
Passwd-u unlock
SSH is not allowed to log in with a blank password by default
Here is a combined parameter
Passwd-n 7-x 80-w 10-i #解释是 Minimum seven days, maximum 80 days to change the password. There are 10 days to send a warning, after expiration 40 prohibit login
Last parameter stdin
echo "FADLFJ" |passwd--stdin root #通过管道更改密码, no hint, one effect
20161101l04-04 old boy Linux OPS training-linux system user and User group management-02