1SESSREG(1) General Commands Manual SESSREG(1)
2
3
4
6 sessreg - manage utmpx/wtmpx entries for non-init clients
7
9 sessreg [-w wtmpx-file] [-u utmpx-file] [-L lastlog-file] [-l line-
10 name] [-h host-name] [-s slot-number] [-x Xservers-file] [-t ttys-file]
11 [-V] [-a] [-d] user-name
12
14 Sessreg is a simple program for managing utmpx/wtmpx and lastlog en‐
15 tries for xdm sessions.
16
17 This version of sessreg is built using the modern POSIX pututxline(3c)
18 interfaces, which no longer require the slot-number, ttys-file, or
19 Xservers-file mappings. For compatibility with older versions and
20 other operating systems, the -s, -t, and -x flags are accepted, but ig‐
21 nored.
22
24 In Xstartup, place a call like:
25
26 sessreg -a -l $DISPLAY -x /etc/X11/xdm/Xservers $USER
27
28 and in Xreset:
29
30 sessreg -d -l $DISPLAY -x /etc/X11/xdm/Xservers $USER
31
33 -w wtmpx-file
34 This specifies an alternate wtmpx file, instead of
35 /var/log/wtmp. The special name "none" disables writing records
36 to the wtmpx file.
37
38 -u utmpx-file
39 This specifies an alternate utmpx file, instead of
40 /var/run/utmp. The special name "none" disables writing records
41 to the utmpx file.
42
43 -L lastlog-file
44 This specifies an alternate lastlog file, instead of
45 /var/log/lastlog, if the platform supports lastlog files. The
46 special name "none" disables writing records to the lastlog
47 file.
48
49 -l line-name
50 This describes the "line" name of the entry. For terminal ses‐
51 sions, this is the final pathname segment of the terminal device
52 filename (e.g. ttyd0). For X sessions, it should probably be
53 the local display name given to the users session (e.g. :0). If
54 none is specified, the terminal name will be determined with
55 ttyname(3) and stripped of leading components.
56
57 -h host-name
58 This is set to indicate that the session was initiated from a
59 remote host. In typical xdm usage, this options is not used.
60
61 -s slot-number
62 This option is accepted for compatibility, but does nothing in
63 this version of sessreg.
64
65 -x Xservers-file
66 This option is accepted for compatibility, but does nothing in
67 this version of sessreg.
68
69 -t ttys-file
70 This option is accepted for compatibility, but does nothing in
71 this version of sessreg.
72
73 -V This option causes the command to print its version and exit.
74
75 -a This session should be added to utmpx/wtmpx.
76
77 -d This session should be deleted from utmpx/wtmpx. One of -a/-d
78 must be specified.
79
81 xdm(1), utmpx(5), wtmpx(5)
82
84 Keith Packard, MIT X Consortium
85
86
87
88X Version 11 sessreg 1.1.2 SESSREG(1)