SUSE 修改密码复杂度
步骤 1?修改/etc/security/pam_pwcheck.conf 文件:
#vi /etc/security/pam_pwcheck.conf
确保下面行未被注释,如没有,请添加:
password:?????? nullok use_cracklib
步骤 2?修改/etc/pam.d/passwd文件:
#vi /etc/pam.d/passwd
确保下面行未被注释,如没有,请添加文件开头:
auth???? required?????? pam_unix2.so??? nullok
account? required?????? pam_unix2.so
password required?????? pam_pwcheck.so? nullok
password requisite????? pam_cracklib.so minlen=6 lcredit=-2 ocredit=-1 use_authtok
password required?????? pam_unix2.so??? nullok use_first_pass use_authtok
session? required?????? pam_unix2.so