Modify Linux password prompt it is based on a dictionary word What to do?

  

In Linux operation, sometimes changing the user password will appear it is based on a dictionary word error prompt, then what does this error mean? How to deal with it? The following small series will introduce you to Linux under it is based on a dictionary word error prompt how to solve.

modified with the user password passwd, often prompt & ldquo; BAD PASSWORD: it is based on a dictionary word & rdquo ;. In fact, the password authentication mechanism required by Linux is to specify the minimum number of password characters in /etc/login.defs; it is also limited by /etc/pam.d/passwd.

If you can set it under the root user, you can not be bound by the verification mechanism, even if you come out, "BAD PASSWORD: it is based on a dictionary word" can also be modified successfully.

But ordinary users modify their own passwords. If they do not meet the password verification mechanism, the modification will be unsuccessful. There will be various errors.

For example:

“BAD PASSWORD: it‘s WAY too short", this is the password is too short, does not meet the /etc/login.defs settings;

“BAD PASSWORD: it is based on your username”, this is the password and account cannot have the same name, this is not in line with the /etc/pam.d/passwd setting;

“BAD PASSWORD: it is Based on a dictionary word” This is because the string in the dictionary appears.

If you use English in combination with numbers and the length is more than 6 digits, you will not get an error.

Supplement:

Change password command on Linux:

After logging in to Linux for any user, enter passwd to directly modify your password.

After the root user logs in, you can use the passwd username to modify the password of a user.

The above is the way to modify the user password under Linux is it based on a dictionary word error prompt, mainly to modify the password of the ordinary user is more troublesome, if the root password is modified, the problem is very good Processing, have you learned?

Copyright © Windows knowledge All Rights Reserved