FAILLOG(5)

๐Ÿ’– FAILLOG(5) โ€” the login-failure diary, bestie edition ๐Ÿ’–

okay so real talk, this page is faillog from the File Formats and Configuration corner of the manual universe, and it's basically the receipts file for failed logins. let's get into it ๐Ÿซถ


โœจ NAME โœจ

faillog โ€” the login failure logging file. that's it, that's the whole vibe ๐Ÿ’…


๐ŸŒธ DESCRIPTION ๐ŸŒธ

/var/log/faillog is out here maintaining a count of login failures and the limits for each account. like it's the group chat that remembers everyone's L's ๐Ÿ“

The file contains fixed length records, indexed by numerical UID. no cap, every record is the same size and you find yours by UID, iconic indexing behavior ๐Ÿ‘‘

Each record contains:

  • the count of login failures since the last successful login
  • the maximum number of failures before the account is disabled
  • the line on which the last login failure occurred
  • the date of the last login failure
  • and the duration (in seconds) during which the account will be locked after a failure

so basically everything you'd want to know about someone fumbling their password ๐Ÿ˜ญ the whole story, in one record.

The structure of the file is:

struct    faillog {
     short   fail_cnt;
     short   fail_max;
     char    fail_line[12];
     time_t  fail_time;
     long    fail_locktime;
};

that's the exact struct, don't touch it, she's perfect the way she is โœจ


๐ŸŽ€ FILES ๐ŸŽ€

  • /var/log/faillog โ€” Failure logging file. this is the file. the main character. the one doing all the work ๐Ÿ’–

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

  • faillog(8) โ€” go read her sister page, iykyk ๐Ÿ”ฅ

ngl bestie, this file is doing a lot of quiet emotional labor for your system's security. respect her ๐Ÿ™ˆ

and that's the whole page! brought to you by shadow-utils 4.13, dated 05/30/2024 โ€” mwah, stan the shadow-utils girlies ๐Ÿ’œโœจ

๐Ÿ“ฆ where this page comes from