Linux Change Password

Source: Internet
Author: User

Scenario: A user's password on a Linux server was discovered by the server administrator to be too simple to reset the password. Processing in order to facilitate the memory, the direct use of ordinary user login, change the password, the original password based on the addition of a series of specific numbers, the results of the prompt does not pass. For example, the error message "Bad Password:it was based on your username" appears.

To the appropriate information:

1, using the Administrator account root how to set all can, can not be constrained by the authentication mechanism.

2, the ordinary user to modify their own password, must comply with the password authentication mechanism, or the modification is unsuccessful, there will be various error prompts.

(1), "Bad Password:it's way to too short"--the report password is too small, does not conform to the/etc/login.defs setting;

(2), "Bad Password:it are based on your username"--the password and account cannot have the same name, this is not in accordance with the/ETC/PAM.D/PASSWD settings;

(3), "Bad Password:it are based on a dictionary word"--a string appears in the dictionary.

Add:

Password change command on Linux:

After any user logs on to Linux, the input passwd can modify their password directly.

After the root user is logged in, you can use the passwd user name to modify a user's password.

Linux Change Password

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.