What is pam_faillock and how to use it in Red Hat Enterprise Linux 8 & 9?

Solution Verified - Updated -

Issue

  • What is pam_faillock?
  • How do I implement account lockout policy using pam_faillock.so?
  • How do I reset/view failed login attempts by a user for pam_faillock?
  • How can I exclude users from getting locked out by pam_faillock after multiple unsuccessful login attempts?
  • What can I use instead of pam_tally2 since it is unavailable in RHEL 8?
  • How to persist account lockouts after system reboot?
  • STIG security findings V-258095, V-258096, V-244533, V-244534

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • PAM
  • pam_faillock.so
  • authselect

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content