centos7:(添加红框处配置,位置也要固定)
cat /etc/pam.d/system-auth
password requisite pam_cracklib.so ucredit=-1 lcredit=-1 dcredit=-1
password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok
password required pam_deny.so
cat /etc/login.defs (口令最小长度设置)
添加:PASS_MIN_LEN 8
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
suse11:(添加红框处配置,位置也要固定)
cat /etc/pam.d/common-password
password requisite pam_pwcheck.so nullok cracklib
password requisite pam_cracklib.so minlen=8 ucredit=-1 lcredit=-1 dcredit=-1 ocredit=-1
password required pam_unix2.so use_authtok nullok
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
suse12:(添加红框处配置,位置也要固定)
cat /etc/pam.d/common-password
password requisite pam_cracklib.so minlen=8 ucredit=-1 lcredit=-1 dcredit=-1 ocredit=-1
password optional pam_gnome_keyring.so use_authtok
password required pam_unix.so use_authtok nullok shadow try_first_pass
本文发布于:2024-02-04 18:32:23,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170713742058380.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |