Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to lock user account on Red Hat Enterprise Linux Server release 5.7 after certain no of unsuccessful attempts

share|improve this question

Use the pam_tally module in your PAM authentication setup. Insert as desired into the relevant /etc/pam.d/* configuration files.


auth     required deny=10 unlock_time=60 per_user

10 failed logins generates a 1 minute lockout.

share|improve this answer
which pam config file I need to insert this line?? is it /etc/pam.d/system-auth – Somenath Karmakar May 31 '12 at 21:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.