AUTOLOG(8)
β¨ AUTOLOG(8) β¨
okay bestie, this is the autolog page from the System Manager's Manual, and it's literally all about logging out idle users π€π
π NAME π
autolog β logs out idle users. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
autolog [ options ]
π¦ DESCRIPTION π¦
so here's the tea β β the program reads the utmp file, entry by entry. for each 'user process' it grabs the username and compares it against the entries in the configuration file (peep autolog.conf(5) for that one, iykyk).
the first entry that matches both the name, the group, and the tty line of the process? that's the one that gets used to conduct the automatic logout. no cap, first match wins π
π CALL π
/etc/init.d/autolog start
or
autolog
to run this program in daemon-mode π
autolog -o
to run this program as "ordinary" program. but lowkey keep in mind: even when running as ordinary program, it will stay in memory until all its jobs are done. it's committed like that π«Ά
β¨ OPTIONS β¨
-aβ (all processes) print information on ALLutmpentries β not just user processes. nosy in the best way π-dβ (debug mode) highkey helpful when you're setting up your configuration file. the program runs in foreground rather than forking, and it prints out verbose messages about what it is doing. main character energy, narrating its own life π¬-nβ (nokill) use this to preventautologfrom actually "killing" anyone. use-dand-ntogether when setting up a new configuration file. (this will not affect killing of lost processes.) π«π-oβ (ordinary) use this to run this program as ordinary program, not as daemon. program will end when its job is done. in this case, some data is kept in"/var/lib/autolog/autolog.data". this is read when the program is called again. it remembers. it's sentimental like that π-fconfig_file_name β use this to override the default:"/etc/autolog.conf"-llog_file_name β use this to override the default:"/var/log/autolog.log". note that if this file doesn't exist, no logging will happen. create the file (withtouch) to enable logging. so if you're wondering why nothing's loggingβ¦ yeah, that's why π-tidle_time β use this to override the internal default idle time (minutes)-ggrace_period β use this to override the internal default grace period (seconds)-myes/no β use this to override the internal mailing switch. if"yes"the program will send mail to the users right after killing them. brutal? maybe. thoughtful? also yes π-cyes/no β use this to override the internal "pre-clear" switch. if"yes"the program will clear the terminal screen before warning the user. clean slate energy π§Ό-wyes/no β do timeouts based on total session time β not idle time. (hard) β°-lyes/no β if set to"yes"activities will be written to the logfile if present. π
β οΈ bestie, heads up: yes, -l shows up twice with two totally different jobs (one takes a log_file_name, one takes yes/no). that's just how it is, don't @ me, i'm only reporting the facts fr fr π
π AUTHOR π
Kyle Bateman <kyle@actarg.com> (autolog 0.35), James Dingwall <james.dingwall@ncrvoyix.com> (autolog 0.42.2)
This manual page was modified for Debian by Paul Telford <pxt@debian.org>
and that's a wrap, bestie ππ this page comes to you from the Linux Administrative Utilities corner of the System Manager's Manual, rocking the AUTOLOG(8) glow-up β stay idle-free and hydrated πΈπ¦β¨
π¦ where this page comes from
- ubuntu resolute: autolog 0.42.2-2 Β· GPL-2.0-or-later
- ubuntu stonking: autolog 0.42.2-5 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms