OCI/Linux – faillock Command Does Not Display Anything — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Get Started with Redwood: Oracle Cloud SCM and Purchasing

OCI/Linux – faillock Command Does Not Display Anything

edited May 22, 2024 9:41AM in Linux

Applies To:

Oracle Cloud Infrastructure

Linux OS

Symptoms:

faillock(8) command does not display any output for individual users.

[root@XXXX ~]# faillock
[root@XXXX ~]#

Cause:

faillock(8) does not display anything against individual users because pam_faillock(8) is not in effect to tally user login failures. Without pam_faillock.so in PAM authentication stacks, there is nothing to tally a user's failed login attempts into /var/run/faillock/<user_name>. No tally files obviously means faillock(8) has nothing to display.

Not using pam_faillock(8) in PAM authentication stacks is NOT an issue per se. It really depends on the environment's intended use. If there is a requirement to tally user login failures, then employ

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!