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
- ubuntu noble: login 1:4.13+dfsg1-4ubuntu3.2 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms