utmp_register(8)
β¨ utmp_register β bestie's guide to the utmp/wtmp database π
okay so this page lives in the hxtools manual set (that's section 8, the sysadmin-y one, iykyk), and it's genuinely one of the most useful little gremlins in there, no cap.
πΈ NAME πΈ
utmp_register β make entries in the utmp/wtmp database
like, it literally puts entries in the utmp/wtmp database. that's the whole job. and it ate.
π SYNTAX π
look at her. so compact. so powerful. the flags are all bundled up at the front like a little friend group π«Ά
β¨ DESCRIPTION β¨
so here's the tea: utmp_register is a helper program for programs that do not want to do the UTMP/WTMP handling within themselves.
that's it. that's the pitch. your program doesn't wanna deal with all that bookkeeping? don't. hand it off. she's got it. main character energy fr fr π
π OPTIONS π
-Aβ Add entry. adding things. we love to see it.-Dβ Delete entry. removing things. also iconic, in a chaotic way.-Uβ Perform operation on the utmp file. (the "U" stands for utmp, keep up bestie π)-Wβ Perform operation on the wtmp file.-eβ Encode PID into the"ut_id"field. yes, into theut_idfield. that's the whole vibe.-hhost β Host field.-luser β User field.-ttty β TTY field.-ppid β Unique ID 1-ssession β Unique ID 2.-ufile β Path to the utmp file, defaults to/var/run/utmp.-wfile β Path to wtmp file, defaults to/var/log/wtmp.
π¨ okay bestie, listen up, because this next bit is the plot twist:-Aand-Dcan be specified together, and if you do that, an entry is added and instantly removed again (utmp), or a login of duration zero is recorded (wtmp). it's giving "blink and you'll miss it". it's giving "was she even there??" absolutely unhinged behaviour, but that's canon, not me making stuff up π
π¦ SEE ALSO π¦
that's the whole page, you're welcome, go forth and register some utmp entries responsibly π
hxtools Β· dated 2008-02-06 Β· utmp_register(8) β and that's the sign-off, mwah, stan a well-documented sysadmin tool πβ¨π
π¦ where this page comes from
- debian bookworm: hxtools 20221119-1 Β· MIT
- ubuntu jammy: hxtools 20211204-1 Β· GPL-2.0-or-later OR GPL-2+3 OR WTFPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms