Resetting login failures counter on Linux: pam_tally(sshd:auth): user wgr (57126) tally8, deny 5

When I try to log in to my Linux account, I get a login failure message. I have checked that the user is not locked and reset their password. I can also log in successfully using su command.

After a bit searching, I check the /var/log/secure log and found the following information about my login attemtps:
 pam_tally(sshd:auth): user krawiecr (57126) tally 49, deny 5

My question now is how to reset the login failure counter to be able to log in again.
graham on 10-06-2013 13:43
To check the login attempt counter, execute:
pam_tally --user <username>

To reset it, use:
pam_tally --reset
graham on 10-06-2013 13:44

Post an answer

Do you have a solution to this problem, or want to comment on it? Other users will appreciate your help!
Your answer or comment:
Show formatting hints
HTML is disallowed, but in your text you can use the following markup
  • [code][/code] for a block of code
  • [tt][/tt] for inline code
  • [link]link href|link anchor[/link] for links
  • [b][/b] for bold text
+ Ask a question
If you have a technical question related to programming and computers, ask it here. Other users will help you solve it!
Unanswered questions
Share your knowledge by helping others solve their problems