pam_tally2锁用户, Account locked due to XX failed logins

pam_tally2锁用户, Account locked due to XX failed logins

pam_tally2锁用户, Account locked due to XX failed logins

1.报错:

新装的oracle, dba说登陆不上去。
于是繁复设置了几个密码还是上不去。 用ssh连接发现原来是锁账户了。

su - oracle
Account locked due to 10 failed logins

2.解决:

查看passwd和 shadow 发现用户并没有锁,于是想到,应该是pam的设置。

pam_tally2.so deny=6 onerr=fail unlock_time=120

默认log在:

/var/log/tallylog

使用pam_tally2命令解锁

 pam_tally2 --user=oracle --reset

ok了