One, CentOS user rights related files
1./etc/passwd (User rights information file)
[User name]:[password placeholder]:[user id]:[Group id]:[user description Information]:[user home directory]:[executable]
Users with "Bin/bash" in the [executable] section can log on normally, and users who are "Sbin/nologin" cannot log on.
2./etc/shadow (user password file)
3./etc/group (group file)
[Group name]:[Group Password placeholder]:[Group ID]
4./etc/gshadow (group password file)
5./home/lihanx (user home directory)
6./var/spool/mail/lihanx (user mailbox file)
Second, user management related commands
ID lihanx (view user lihanx information)
Tom (add new user Tom and specify uid=1000)
-G
-D (Specify home directory)
-S (Specify user shell)
-C (Specify user description information)
[[email protected] ~]# userdel-r Tom (delete tom User and related information)
[Email protected] ~]# Usermod-D ( )-G -ug
linux--User and user group permissions