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