AUTOLOG(8)

πŸ“¦
version 0.42.2 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

✨ 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 ALL utmp entries β€” 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 prevent autolog from actually "killing" anyone. use -d and -n together 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 😭
  • -f config_file_name β€” use this to override the default: "/etc/autolog.conf"
  • -l log_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 (with touch) to enable logging. so if you're wondering why nothing's logging… yeah, that's why πŸ™ˆ
  • -t idle_time β€” use this to override the internal default idle time (minutes)
  • -g grace_period β€” use this to override the internal default grace period (seconds)
  • -m yes/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 πŸ’Œ
  • -c yes/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 🧼
  • -w yes/no β€” do timeouts based on total session time β€” not idle time. (hard) ⏰
  • -l yes/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