Resolve and Remove "BAD PASSWORD: It is Based on a Dictionary Word "in Linux
如果修改的是root的密码则即使有错误提示也可以修改成功的,但是对于一般的用户则不会成功,解决方法如下:
Resolve and Remove “BAD PASSWORD: it is based on a dictionary word “in LinuxIf you know what you’re doing and want to use weak password in Linux (CentOS, RedHat … etc), follow the steps below.
步骤1,vi /etc/pam.d/system-auth as root.
步骤2,Look for the following two lines:
password requisite pam_cracklib.so try_first_pass retry=3
password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok
password requisite pam_cracklib.so try_first_pass ret