An error was reported when modifying the password of an ordinary user: BAD PASSWORD: is to
The password of an ordinary user expires and is prompted to change the password. Due to the security requirements of the online server, this function cannot be turned off. However, no matter how complex the password I change, I always report an error: "BAD PASSWORD: is too simple". After tossing about for several days, I remembered Baidu.
It turns out that the default password setting rule for CentOS 7.2 is to contain at least one uppercase English, one lowercase English and a number.
When I set my own password, I think of the mixed use of lowercase letters and numbers and special symbols, but I don't use uppercase.
Now, even if the new password is only a mixture of words, numbers and special symbols, as long as there are uppercase letters in it, this error will not be reported again.
Reference documentation: BAD PASSWORD: is too simple when https://blog.csdn.net/yangyongming_888/article/details/84568848--git changes (sets) password