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

posted @ 2025-04-10 11:15  刚好遇见Mysql  阅读(48)  评论(0)    收藏  举报