Linux Operating System (MOSC)

MOSC Banner

pam_faillock

edited Jun 12, 2025 12:38AM in Linux Operating System (MOSC) 6 commentsAnswered ✓

Hi,

As per an audit finding, I need to set pam_faillock setting in the following pam.d files,

/etc/pam.d/login,
/etc/pam.d/sshd
/etc/pam.d/su, /etc/pam.d/su-l
/etc/pam.d/sudo, /etc/pam.d/sudo-i

When I set the following faillock settings in the /etc/pam.d/sshd file, we are unable to connect to the system,

auth required pam_faillock.so preauth silent audit deny=3 even_deny_root unlock_time=1200
auth [default=die] pam_faillock.so authfail audit deny=3 even_deny_root unlock_time=1200

account required pam_faillock.so

We are aware that the order of the commands in these config files is important.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center