Knowledge about user information and passwords in Linux

Source: Internet
Author: User
Tags md5 encryption

In Linux, if you modify the user information, password, group information, password, etc., in fact, in the modification of the contents of the /etc/passwd,/etc/shadow,/etc/group,/etc/groupshadow and other documents,

The meanings of these four documents are:

user account information file , user password file , user group information file , user group password information file

Specific content can be opened to see, are text files, clear structure

Here is a specific word about the password information file,

Shadow files (including user passwords and group password files) personally think that you can understand:

It originally does not exist, that is, it is not with the user's operation and the simultaneous production,

This file is generated by MD5 encryption of the password field in the passwd file or group file, and the password field in the passwd file is MD5 encrypted and no longer fully displays the password.

Instead of the character ' X ',

Is it possible to temporarily cancel the encryption of the shadow file? Of course, the answer is yes,

With the pwunconv command, the encryption is temporarily canceled, and after the encryption is canceled, the shadow file will disappear temporarily,

The password will appear in the passwd or group file as a full string

Restore encryption using the PWCONV command,

After recovering the encryption, the shadow file will appear, and the password in the passwd file will be replaced by ' X ' again.

Knowledge about user information and passwords in 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.