LinuxCommandLibrary

faillock

TLDR

List login failures of current user

$ faillock
copy
Reset failure records of current user
$ faillock --reset
copy
List login failures of all users
$ sudo faillock
copy
List failures of specific user
$ sudo faillock --user [user]
copy
Reset failures of specific user
$ sudo faillock --user [user] --reset
copy

SYNOPSIS

faillock [options]

DESCRIPTION

faillock displays and modifies authentication failure record files. Part of the PAM pam_faillock module, it tracks failed login attempts and can lock out accounts after too many failures.
Used for security monitoring and account lockout management.

PARAMETERS

--user user

Operate on specific user
--reset
Reset failure records
--dir dir
Use alternate tally directory

CAVEATS

Part of the Linux-PAM package. Records stored in /var/run/faillock/ by default. Requires root to view other users' records.

SEE ALSO

pam_faillock(8), pam(8)

Copied to clipboard