FAILLOCK(8)

โœจ FAILLOCK โœจ (section 8, Linux-PAM Manual, bestie ๐Ÿ’–)

okay so picture this: you're deep in the Linux-PAM manual pages, and you stumble onto faillock โ€” and it's literally the tool for peeking at and messing with the authentication failure record files. yeah. the receipts. ๐Ÿงพ


๐ŸŒธ NAME ๐ŸŒธ

faillock โ€” the tool for displaying and modifying the authentication failure record files. no cap, that's the whole job.


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

faillock [--dir /path/to/tally-directory] [--user username] [--reset]

that's it. three optional flags and you're the main character of your own account-lockout drama. ๐Ÿ’…


๐ŸŽ€ DESCRIPTION ๐ŸŽ€

so the pam_faillock.so module is out here keeping a whole list of failed authentication attempts, per user, during a specified interval โ€” and it locks the account in case there were more than deny consecutive failed authentications. dramatic? yes. necessary? also yes. ๐Ÿ’€

and the way it stores those failure records? into per-user files in the tally directory. very organized. very demure. ๐Ÿ“

now, the faillock command itself is an application you can use to examine and modify the contents of those tally files. it can show you the recent failed authentication attempts of the username, or it can clear the tally files โ€” for all usernames or just individual ones. your call, bestie. ๐Ÿซถ


โœจ OPTIONS โœจ

  • --conf /path/to/config-file โ€” the file where the configuration is located, fr. the default is /etc/security/faillock.conf. that's where the vibes (and the settings) live. ๐Ÿ’œ
  • --dir /path/to/tally-directory โ€” the directory where the user files with the failure records are kept. the receipts folder, basically. ๐Ÿ“

the priority to set this option is: first, use the value provided from the command line. if that isn't provided, then the value from the configuration file is used. and finally, if neither of them has been provided, then /var/run/faillock is used. three-tier fallback, she's got layers. ๐Ÿ‘‘

  • --user username โ€” the user whose failure records should be displayed or cleared. name the person. be specific. ๐ŸŽฏ
  • --reset โ€” instead of displaying the user's failure records, clear them. poof. gone. clean slate energy. โœจ

๐ŸŒˆ FILES ๐ŸŒˆ

  • /var/run/faillock/* โ€” the files logging the authentication failures for users. every single one of those little files is a paper trail. ๐Ÿงพ

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

go read them. iykyk. ๐Ÿ“š


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

faillock was written by Tomas Mraz. absolute legend, we stan. ๐ŸŒŸ


and that's the whole page, bestie โ€” go forth and check those tally files responsibly ๐Ÿ’–

this has been the Linux-PAM manual page, dated 09/27/2026, section 8, and yeah โ€” it ate. periodt. ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from