SESSREG(1)
๐ SESSREG โ bestie's guide to utmpx/wtmpx wrangling
okay so real talk: this is the sessreg page from X Version 11, and honestly? she's lowkey a legend. let's get into it ๐
โจ NAME โจ
sessreg โ manages utmpx/wtmpx entries for non-init clients ๐
๐ธ SYNOPSIS ๐ธ
sessreg [-w wtmpx-file] [-u utmpx-file] [-L lastlog-file]
[-l line-name] [-h host-name] [-s slot-number]
[-x Xservers-file] [-t ttys-file] [-V] [-a] [-d] user-name
๐ฆ DESCRIPTION ๐ฆ
Sessreg is a simple lil program for managing utmpx/wtmpx and lastlog entries for xdm sessions. she's not doing the most, she's just doing her job โจ
This version of sessreg is built using the modern POSIX pututxline(3c) interfaces, which no longer require the slot-number, ttys-file, or Xservers-file mappings. so likeโฆ the mapping era is over, we've moved on ๐
For compatibility with older versions and other operating systems, the -s, -t, and -x flags are accepted, but ignored. yes bestie, they're still in the group chat, they just don't say anything ๐
๐ USAGE ๐
In Xstartup, place a call like:
sessreg -a -l $DISPLAY -x /etc/X11/xdm/Xservers $USER
and in Xreset:
sessreg -d -l $DISPLAY -x /etc/X11/xdm/Xservers $USER
like, that's it. that's the whole ritual ๐ฏ๏ธโจ
๐ OPTIONS ๐
-wwtmpx-file โ this specifies an alternatewtmpxfile, instead of/var/log/wtmp. the special name"none"disables writing records to thewtmpxfile. (yes, literally the word"none", no cap)-uutmpx-file โ this specifies an alternateutmpxfile, instead of/var/run/utmp. the special name"none"disables writing records to theutmpxfile.-Llastlog-file โ this specifies an alternatelastlogfile, instead of/var/log/lastlog, if the platform supports lastlog files. the special name"none"disables writing records to thelastlogfile. platform-dependent queen ๐ซถ-lline-name โ this describes the "line" name of the entry. for terminal sessions, this is the final pathname segment of the terminal device filename (e.g.ttyd0). for X sessions, it should probably be the local display name given to the users session (e.g.:0). if none is specified, the terminal name will be determined withttyname(3)and stripped of leading components. she'll figure it out herself, she's resourceful ๐-hhost-name โ this is set to indicate that the session was initiated from a remote host. in typicalxdmusage, this options is not used. (remote vibes only when you actually need them ๐)-sslot-number โ this option is accepted for compatibility, but does nothing in this version ofsessreg. ghost flag ๐-xXservers-file โ this option is accepted for compatibility, but does nothing in this version ofsessreg. also a ghost ๐ป-tttys-file โ this option is accepted for compatibility, but does nothing in this version ofsessreg. ghost #3, she's still invited tho ๐-V,--versionโ this option causes the command to print its version and exit. short and iconic โญ-aโ this session should be added toutmpx/wtmpx. the "you're so back" flag โจ-dโ this session should be deleted fromutmpx/wtmpx. the "it's so over" flag ๐ญ**
โ ๏ธ real talk: one of-a/-dmust be specified. you literally cannot run this without picking a side. main character decision energy ๐ฅ
๐ฅ SEE ALSO ๐ฅ
xdm(1), utmpx(5), wtmpx(5) โ go read these, iykyk ๐
๐ AUTHOR ๐
Keith Packard, MIT X Consortium โ legend behavior, honestly ๐
sessreg 1.1.4 ยท 2025-03-22 โ that's the version and the date bestie, screenshot it for the group chat ๐ธ mwah, go log your sessions responsibly ๐โจ
๐ฆ where this page comes from
- arch rolling: xorg-sessreg 1.1.4-1 ยท MIT AND MIT-open-group
- epel 10: sessreg 1.1.4-1.el10_1 ยท MIT AND MIT-open-group
- fedora 43: sessreg 1.1.4-2.fc43 ยท MIT AND MIT-open-group
- fedora 44: sessreg 1.1.4-3.fc44 ยท MIT AND MIT-open-group
- nixos 26.05: sessreg 1.1.4
- nixpkgs unstable: sessreg 1.1.4
- Copyright 1994, 1998 The Open Group
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms