linux操作系统去掉密码策略
#备份文件
cp /etc/pam.d/system-auth /etc/pam.d/system-auth.`date +%Y%m%d.%H%M%S`
vim /etc/pam.d/system-auth
#注释掉以下行
#password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
#删除掉下行中的选项use_authok
password sufficient pam_unix.so sha512 shadow nullok try_first_pass #use_authtok

浙公网安备 33010602011771号