CHKWTMP(8)
π CHKWTMP β the chkwtmp(8) girlies' edition π
okay bestie, so this is a page from the System Manager's Manual and it's about a lil program called chkwtmp. it's giving forensic detective energy, honestly. let's get into it π΅οΈβοΈβ¨
πΈ NAME πΈ
chkwtmp β check wtmp file deleted entries
like. it checks the wtmp file. for deleted entries. that's the whole vibe π
β¨ SYNOPSIS β¨
chkwtmp looks for data deleted from wtmp
no flags, no arguments, no nothing. she just looks. iconic behaviour, no cap π
π¦ DESCRIPTION π¦
so here's the tea, bestie π
chkwtmp examines the file /var/log/wtmp for entries which have been overwritten (containing only null-bytes). yep β overwritten. gone. ghosted. the entry literally got replaced with nothing but null-bytes and now it's just sitting there like π
if such entries are found, the program displays the timestamps of the entries before and after the deleted entry β which lowkey gives you an idea of when the entry was deleted. a little timeline reconstruction moment, main character detective energy fr fr π₯
and here's the practical bit: chkwtmp needs to be able to read /var/log/wtmp. normally this file is world-readable, so no special privileges are required β no sudo, no drama, you can just run it π«Ά
π FILES π
/var/log/wtmpβ database of logins and logouts. that's her. that's the file. the whole reason we're here π
π SEE ALSO π
wtmp(4)who(1)
go read those too, they're the extended universe iykyk β¨
β LIMITATIONS β
okay now the fine print, and pls actually read this one bestie:
- An entry is recognized as overwritten if the time-information has been overwritten with null-bytes.
so like β the detection is specifically keyed on the time info being nulled out. that's the trigger. noted. π
- This program was originally designed to run on SunOS 4.x systems. On other systems the output is undefined.
π¨ okay this is the big one π¨ she's an OG SunOS 4.x girl, and on anything else the output is undefined β meaning nobody's promising you anything sensible comes out. no guessing, no cap. run it elsewhere at your own risk, babe π
and that's the whole page!! so cute, so short, so useful. go check your wtmp, be safe, hydrate π
written under the System Manager's Manual, dated Oct 23, 2021 β mwah, love u, bye π
π¦ where this page comes from
- debian bookworm: chkrootkit 0.57-2+b9 Β· BSD-2-Clause
- debian trixie: chkrootkit 0.58b-5+b8 Β· BSD-2-Clause
- ubuntu jammy: chkrootkit 0.55-4 Β· BSD-2-Clause
- ubuntu noble: chkrootkit 0.58b-1 Β· BSD-2-Clause
- ubuntu questing: chkrootkit 0.58b-6
- ubuntu resolute: chkrootkit 0.58b-6build1 Β· BSD-2-Clause
- ubuntu stonking: chkrootkit 0.59-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms