即使使用enforce_for_root选项,pam_cracklib也不要为根执行difok
我尝试为root执行difok = 7,但无法使它起作用。到现在为止,我尝试了每种组合,但它无法正常工作。我找不到有关此问题的任何信息。
PAM_CRACKLIB的这种正常状态不是针对root强制执行的difok = 7吗?
这是我正在使用的配置:密码必需pam_pwquality.so retry = 3 difok = 7 minlen = 10 ucredit = -1 dcredit = -1 maxrepeat = 3 refferend_username enforce_for_for_for_root
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
。
简而言之:当您更改root的密码时,它不会检查旧密码,因为此检查将毫无意义,因为它不会增加额外的安全性。
Possible duplicate of https://unix.stackexchange.com/questions/239002/why-roots-password-change-doesnt-require-old-password.
In short: When you change the password for root it does not check for the old password, because this check would be pointless as it adds no additional security.
在手册(
man pam_pwquality.so
)中,关于enforce_by_root
选项有关于这一点的注释。这意味着检查将旧密码与新密码进行比较(在我们的情况下 difok )将被忽略。
in the manual (
man pam_pwquality.so
), there is a note about this point for theenforce_by_root
option.which means that check that compare the old password with the new one (
difok
in our case) will be ignored.