In This article we talk about user management related content, involving/etc/passwd,/etc/shadow,/etc/group three user account related files and the following user management related commands: Useradd, Usermod, Userdel, passwd, Groupadd, Groupdel, id, su, chage, Chfn, Chsh, Newgrp, gpasswd.
I.. passwd file
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/75/97/wKiom1Y8vvmDT_dGAAD9znP-WVY116.jpg "title=" 1.png " alt= "Wkiom1y8vvmdt_dgaad9znp-wvy116.jpg"/>
①account: User Name
②password: Password placeholder
③UID: User ID number
④gid: Base Group ID number
⑤gecos: Comment Information
⑥directory: Home Directory
⑦shell: Default Shell
Ii.. Shadow Documents
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/75/97/wKiom1Y8w93ju2RRAAF4B5I5WIE613.jpg "title=" 2.png " alt= "Wkiom1y8w93ju2rraaf4b5i5wie613.jpg"/>
①login Name: User name
②encrypted Password: encrypted password
③days since Jan 1, 1970 that password is last changed: time of the most recent password change
④days before password may be changed: minimum term of use
⑤days after which password must be changed: maximum lifespan
⑥days before password is to expire, user is warned: Warning time
⑦days after password expires the account is disabled: inactivity time
⑧days since Jan 1, 1970, is disabled: expiry time
⑨a reserved field: Reserved area, not used
Third, group documents
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/75/97/wKiom1Y8xraiKR1oAAClemSTaAE133.jpg "title=" 3.png " alt= "Wkiom1y8xraikr1oaaclemstaae133.jpg"/>
①group_name: Group Name
②password: Password placeholder
③gid: Base Group ID number
④user_list: List of users with this group attached to the group
This article is from the "Hello,linux" blog, make sure to keep this source http://soysauce93.blog.51cto.com/7589461/1710414
Linux User Management Common commands