1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
.TH utmp_register 8 "2008-02-06" "hxtools" "hxtools"
.SH Name
.PP
utmp_register \(em make entries in the utmp/wtmp database
.SH Syntax
.PP
\fButmp_register\fP [\fB\-ADUWe\fP] [\fB\-h\fP \fIhost\fP] [\fB\-l\fP
\fIuser\fP] [\fB\-p\fP \fIid1\fP] [\fB\-s\fP \fIid2\fP] [\fB\-t\fP \fItty\fP]
[\fB\-u\fP \fIutmpfile\fP] [\fB\-w\fP \fIwtmpfile\fP]
.SH Description
.PP
utmp_register is a helper program for programs which do not want to do the
UTMP/WTMP handling within themselves.
.SH Options
.TP
\fB\-A\fP
Add entry.
.TP
\fB\-D\fP
Delete entry.
.TP
\fB\-U\fP
Perform operation on the utmp file.
.TP
\fB\-W\fP
Perform operation on the wtmp file.
.TP
\fB\-e\fP
Encode PID into the "ut_id" field.
.TP
\fB\-h\fP \fIhost\fP
Host field.
.TP
\fB\-l\fP \fIuser\fP
User field.
.TP
\fB\-t\fP \fItty\fP
TTY field.
.TP
\fB\-p\fP \fIpid\fP
Unique ID 1
.TP
\fB\-s\fP \fIsession\fP
Unique ID 2.
.TP
\fB\-u\fP \fIfile\fP
Path to the utmp file, defaults to /var/run/utmp.
.TP
\fB\-w\fP \fIfile\fP
Path to wtmp file, defaults to /var/log/wtmp.
.PP
\-A and \-D can be specified together, in which case an entry is added and
instantly removed again (utmp), or a login of duration zero is recorded (wtmp).
.SH See also
.PP
\fBhxtools\fP(7)
|