3

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

1 Answers1

3

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

Sample:

auth     required       pam_tally.so deny=10 unlock_time=60 per_user

10 failed logins generates a 1 minute lockout.

Jeff Ferland
  • 20,687
  • 2
  • 63
  • 85