Linux User Management Common commands

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.