这是我的密码验证文件:
auth required pam_faillock.so preauth silent deny=5 unlock_time=900
auth required pam_faillock.so authfail deny=5 unlock_time=900
auth include password-auth-ac
account include password-auth-ac
password include password-auth-ac
session required pam_tty_audit.so disable=* enable=root
session optional pam_umask.so
session include password-auth-ac
这是我的系统身份验证文件:
auth required pam_faillock.so preauth silent deny=5 unlock_time=900
auth required pam_faillock.so authfail deny=5 unlock_time=900
auth include system-auth-ac
account include system-auth-ac
password sufficient pam_unix.so remember=5
password include system-auth-ac
session required pam_tty_audit.so disable=* enable=root
session optional pam_umask.so
session include system-auth-ac
我还有一个用户登录时使用密码,该密码在 5 次成功登录后锁定。所有日志都表明之前的登录成功,但第 5 次尝试锁定了帐户。
我不知道从哪里开始寻找答案。
更新:
使用failock --user ftpweb
我已经能够识别此错误何时发生。使用我的默认 ssh 选项,它会在我输入密码之前记录登录失败。使用-o PreferredAuthentications=password -o PubkeyAuthentication=no
它在成功输入密码后发生。