A detailed description of the 9 fields for the 7 fields and passwords of the user name under Linux

Source: Internet
Author: User

I. Viewing user names


cat/etc/passwd


650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8B/18/wKiom1hENn2RzaKsAABFHZWv8k8877.png-wh_500x0-wm_3 -wmp_4-s_3401578505.png "title=" 44.png "alt=" Wkiom1henn2rzaksaabfhzwv8k8877.png-wh_50 "/>



A total of 7 parts per line separated by a colon


The first paragraph refers to the user name

The second paragraph is the user's password

The third paragraph refers to the UID, each user has their own UID

The fourth paragraph refers to the group UID, each user has a different UID

The fifth paragraph is the field that explains the description

The sixth paragraph refers to the user's home directory

The seventh paragraph refers to the shell



Two. View the password file


Cat/etc/shadow


650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8B/18/wKiom1hENrzxlqqFAABMuDRXlkg457.png-wh_500x0-wm_3 -wmp_4-s_2114369785.png "title=" F.png "alt=" Wkiom1henrzxlqqfaabmudrxlkg457.png-wh_50 "/>


9 fields are split

The first field is a user name

The second field is the user's password

Third field The last time the password was changed, elapsed time (1970.1.1-now elapsed time)

Fourth field How many geniuses can you change your password?

Number of days before the fifth field password expires

Sixth field password expiration how many days a warning is issued

the Seventh field default NULL indicates the expiration date of the account. number of days after expiry lock account

The life cycle of the eighth field account

The Nineth field is a reserved value




A detailed description of the 9 fields for the 7 fields and passwords of the user name under Linux

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.