centos 7 修改密码 BAD PASSWORD: is too simple BAD PASSWORD: it is WAY too short 解决

时间:2019-10-21 12:09:15   收藏:0   阅读:674

New password:
BAD PASSWORD: it is WAY too short
BAD PASSWORD: is too simple

解决:

编辑/etc/pam.d/system-auth


password    requisite     pam_cracklib.so try_first_pass retry=3 type=
password    sufficient    pam_unix.so sha512 shadow nullok try_first_pass use_authtok
password    required      pam_deny.so
改为
password    sufficient    pam_unix.so sha512 shadow nullok #try_first_pass use_authtok

说明:使用authconfig配置会覆盖/etc/pam.d/system-auth中的内容。



原文:https://www.cnblogs.com/tryc/p/11712156.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!