密码策略文件:
/etc/pam.d/system-auth
找到行:
password requisite pam_pwquality.so try_first_pass local_users_only
为保证安全,可以将这一行注释掉,添加一行,最后结果如下:
- #password requisite pam_pwquality.so try_first_pass local_users_only
- password requisite pam_pwquality.so try_first_pass local_users_only minlen=8 lcredit=0 dcredit=-1 maxrepeat=0 ucredit=0 ocredit=0 minclass=1 maxclassrepeat=0
下面对内容做一个说明: