pam_faillock prints "Consecutive login failures for user root account temporarily locked" without even_deny_root
Issue
pam_faillock prints Consecutive login failures for user root account temporarily locked without even_deny_root option
-
pam_faillock/faillock.conf contains default configuration. e.g. both
even_deny_rootandroot_unlock_timeare commented out.rootaccount should not be locked for failed login attempts. -
However, when
rootdeliberately authenticate with incorrect password, below error message is logged in/var/log/securealthough the account is not actually locked.pam_faillock(su-l:auth): Consecutive login failures for user root account temporarily locked -
After this error message is recorded in
/var/log/secure, root is able to login successfully with correct password.
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- PAM
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.