Remove stale references to utmp(5) and its corresponding filenames.

I removed utmp and its manpage, but not other manpages referring to it.
This commit is contained in:
Ed Schouten
2010-01-21 17:25:12 +00:00
parent 84bee0d7fb
commit 0806dd9238
20 changed files with 70 additions and 85 deletions
+2 -2
View File
@@ -299,7 +299,7 @@ for more information.
.El .El
.Sh FILES .Sh FILES
.Bl -tag -width /var/log/messages -compact .Bl -tag -width /var/log/messages -compact
.It Pa /var/log/wtmp .It Pa /var/log/utx.log
record of date resets and time changes record of date resets and time changes
.It Pa /var/log/messages .It Pa /var/log/messages
record of the user setting the time record of the user setting the time
@@ -406,9 +406,9 @@ fails.
.Sh SEE ALSO .Sh SEE ALSO
.Xr locale 1 , .Xr locale 1 ,
.Xr gettimeofday 2 , .Xr gettimeofday 2 ,
.Xr getutxent 3 ,
.Xr strftime 3 , .Xr strftime 3 ,
.Xr strptime 3 , .Xr strptime 3 ,
.Xr utmp 5 ,
.Xr timed 8 .Xr timed 8
.Rs .Rs
.%T "TSP: The Time Synchronization Protocol for UNIX 4.3BSD" .%T "TSP: The Time Synchronization Protocol for UNIX 4.3BSD"
+2 -7
View File
@@ -65,12 +65,7 @@ and terminate
sessions. sessions.
The The
.Fn pam_sm_open_session .Fn pam_sm_open_session
function records the session in the function records the session in the user accounting database.
.Xr utmp 5 ,
.Xr wtmp 5
and
.Xr lastlog 5
databases.
The The
.Fn pam_sm_close_session .Fn pam_sm_close_session
function does nothing. function does nothing.
@@ -90,10 +85,10 @@ Ignore I/O failures.
.Sh SEE ALSO .Sh SEE ALSO
.Xr last 1 , .Xr last 1 ,
.Xr w 1 , .Xr w 1 ,
.Xr getutxent 3 ,
.Xr login 3 , .Xr login 3 ,
.Xr logout 3 , .Xr logout 3 ,
.Xr pam.conf 5 , .Xr pam.conf 5 ,
.Xr utmp 5 ,
.Xr lastlogin 8 , .Xr lastlogin 8 ,
.Xr pam 8 .Xr pam 8
.Sh AUTHORS .Sh AUTHORS
+1 -1
View File
@@ -91,7 +91,7 @@ If
omitted, standard mailbox assumed. omitted, standard mailbox assumed.
.Sh FILES .Sh FILES
.Bl -tag -width ".Pa /var/mail/user" -compact .Bl -tag -width ".Pa /var/mail/user" -compact
.It Pa /var/run/utmp .It Pa /var/run/utx.active
to find out who is logged on and on what terminals to find out who is logged on and on what terminals
.It Pa /var/mail/user .It Pa /var/mail/user
standard mailbox standard mailbox
+1 -2
View File
@@ -219,8 +219,7 @@ This option may be overridden by
A synonym for A synonym for
.Fl d . .Fl d .
.It Fl W .It Fl W
Do not log FTP sessions to Do not log FTP sessions to the user accounting database.
.Pa /var/log/wtmp .
.El .El
.Pp .Pp
The file The file
+5 -15
View File
@@ -148,12 +148,9 @@ dies, either because the user logged out
or an abnormal termination occurred (a signal), or an abnormal termination occurred (a signal),
the the
.Nm .Nm
utility wakes up, deletes the user utility wakes up and records the logout in the the user accounting
from the database (see
.Xr utmp 5 .Xr getutxent 3 ).
file of current users and records the logout in the
.Xr wtmp 5
file.
The cycle is The cycle is
then restarted by then restarted by
.Nm .Nm
@@ -207,13 +204,6 @@ If a line is commented out or deleted from
.Xr ttys 5 , .Xr ttys 5 ,
.Nm .Nm
will not do anything at all to that line. will not do anything at all to that line.
However, it will complain that the relationship between lines
in the
.Xr ttys 5
file and records in the
.Xr utmp 5
file is out of sync,
so this practice is not recommended.
.Pp .Pp
The The
.Nm .Nm
@@ -316,9 +306,9 @@ system console device
.It Pa /dev/tty* .It Pa /dev/tty*
terminal ports found in terminal ports found in
.Xr ttys 5 .Xr ttys 5
.It Pa /var/run/utmp .It Pa /var/run/utx.active
record of current users on the system record of current users on the system
.It Pa /var/log/wtmp .It Pa /var/log/utx.log
record of all logins and logouts record of all logins and logouts
.It Pa /etc/ttys .It Pa /etc/ttys
the terminal initialization information file the terminal initialization information file
+2 -3
View File
@@ -61,9 +61,8 @@ a
(and subsequently a (and subsequently a
.Dv SIGKILL ) .Dv SIGKILL )
and, respectively, halt or restart the system. and, respectively, halt or restart the system.
The action is logged, including entering a shutdown record into the The action is logged, including entering a shutdown record into the user
.Xr wtmp 5 accounting database.
file.
.Pp .Pp
The options are as follows: The options are as follows:
.Bl -tag -width indent .Bl -tag -width indent
+1 -1
View File
@@ -97,7 +97,7 @@ does not exist in the passwd file.
.It Sy EX_OSFILE Pq 72 .It Sy EX_OSFILE Pq 72
Some system file (e.g., Some system file (e.g.,
.Pa /etc/passwd , .Pa /etc/passwd ,
.Pa /var/run/utmp , .Pa /var/run/utx.active ,
etc.) does not exist, cannot be opened, or has some sort of error etc.) does not exist, cannot be opened, or has some sort of error
(e.g., syntax error). (e.g., syntax error).
.It Sy EX_CANTCREAT Pq 73 .It Sy EX_CANTCREAT Pq 73
+8 -4
View File
@@ -735,10 +735,14 @@ kerberos server databases; see
miscellaneous system log files miscellaneous system log files
.Pp .Pp
.Bl -tag -width Fl -compact .Bl -tag -width Fl -compact
.It Pa wtmp .It Pa utx.lastlogin
last login log;
see
.Xr getutxent 3
.It Pa utx.log
login/logout log; login/logout log;
see see
.Xr wtmp 5 .Xr getutxent 3
.El .El
.Pp .Pp
.It Pa mail/ .It Pa mail/
@@ -769,10 +773,10 @@ writable by the
.Dq network .Dq network
group for command connection sockets; see group for command connection sockets; see
.Xr ppp 8 .Xr ppp 8
.It Pa utmp .It Pa utx.active
database of current users; database of current users;
see see
.Xr utmp 5 .Xr getutxent 5
.El .El
.Pp .Pp
.It Pa rwho/ .It Pa rwho/
+2 -2
View File
@@ -25,5 +25,5 @@
(/mnt)?/cdrom(/.*)? lomac/high (/mnt)?/cdrom(/.*)? lomac/high
(/usr)?/home/(ftp|samba)(/.*)? lomac/high (/usr)?/home/(ftp|samba)(/.*)? lomac/high
/var/log/sendmail\.st lomac/low /var/log/sendmail\.st lomac/low
/var/run/utmp lomac/equal /var/run/utx.active lomac/equal
/var/log/(lastlog|wtmp) lomac/equal /var/log/utx.(lastlogin|log) lomac/equal
+2 -2
View File
@@ -313,7 +313,7 @@ letter pair is not specified, the value defaults to 0.
directory containing job files directory containing job files
.It Pa _ATSPOOL_DIR .It Pa _ATSPOOL_DIR
directory containing output spool files directory containing output spool files
.It Pa /var/run/utmp .It Pa /var/run/utx.active
login records login records
.It Pa _PERM_PATH/at.allow .It Pa _PERM_PATH/at.allow
allow permission control allow permission control
@@ -338,7 +338,7 @@ with minor enhancements by
.An Joe Halpin Aq joe.halpin@attbi.com . .An Joe Halpin Aq joe.halpin@attbi.com .
.Sh BUGS .Sh BUGS
If the file If the file
.Pa /var/run/utmp .Pa /var/run/utx.active
is not available or corrupted, or if the user is not logged on at the is not available or corrupted, or if the user is not logged on at the
time time
.Nm .Nm
+3 -4
View File
@@ -100,8 +100,7 @@ of the remote host when used in conjunction with the
.Fl h .Fl h
option. option.
.It Fl k .It Fl k
Disable all use of Disable all use of the user accounting database.
.Xr utmp 5 .
.It Fl l .It Fl l
Produce a multi-line format displaying all of the information Produce a multi-line format displaying all of the information
described for the described for the
@@ -221,10 +220,10 @@ This variable may be set with favored options to
.Nm . .Nm .
.El .El
.Sh FILES .Sh FILES
.Bl -tag -width /var/log/lastlog -compact .Bl -tag -width /var/log/utx.lastlogin -compact
.It Pa /etc/finger.conf .It Pa /etc/finger.conf
alias definition data base alias definition data base
.It Pa /var/log/lastlog .It Pa /var/log/utx.lastlogin
last login data base last login data base
.El .El
.Sh SEE ALSO .Sh SEE ALSO
+6 -6
View File
@@ -83,7 +83,7 @@ be reported.
This may be used with the This may be used with the
.Fl f .Fl f
option to derive the results from stored option to derive the results from stored
.Pa wtmp .Pa utx.log
files. files.
When this argument is provided, all other options except for When this argument is provided, all other options except for
.Fl f .Fl f
@@ -141,7 +141,7 @@ letter pair is not specified, the value defaults to 0.
Read the file Read the file
.Ar file .Ar file
instead of the default, instead of the default,
.Pa /var/log/wtmp . .Pa /var/log/utx.log .
.It Fl h Ar host .It Fl h Ar host
.Ar Host .Ar Host
names may be names or internet numbers. names may be names or internet numbers.
@@ -196,13 +196,13 @@ If interrupted with a quit signal
indicates how indicates how
far the search has progressed and then continues. far the search has progressed and then continues.
.Sh FILES .Sh FILES
.Bl -tag -width /var/log/wtmp -compact .Bl -tag -width /var/log/utx.log -compact
.It Pa /var/log/wtmp .It Pa /var/log/utx.log
login data base login data base
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr lastcomm 1 , .Xr lastcomm 1 ,
.Xr utmp 5 , .Xr getutxent 3 ,
.Xr ac 8 .Xr ac 8
.Sh HISTORY .Sh HISTORY
A A
@@ -212,7 +212,7 @@ utility appeared in
.Sh BUGS .Sh BUGS
If a login shell should terminate abnormally for some reason, it is likely If a login shell should terminate abnormally for some reason, it is likely
that a logout record will not be written to the that a logout record will not be written to the
.Pa wtmp .Pa utx.log
file. file.
In this case, In this case,
.Nm .Nm
+1 -1
View File
@@ -69,7 +69,7 @@ Displays mounted volumes on a given
.Sh IMPLEMENTATION NOTES .Sh IMPLEMENTATION NOTES
This utility is provided mostly for educational purposes. This utility is provided mostly for educational purposes.
.Sh FILES .Sh FILES
.Bl -tag -width /var/log/wtmp -compact .Bl -tag -width /var/log/utx.log -compact
.It Pa ~/.nwfsrc .It Pa ~/.nwfsrc
keeps description for each connection. keeps description for each connection.
See See
+2 -2
View File
@@ -116,10 +116,10 @@ Permission to talk may be denied or granted by use of the
command. command.
At the outset talking is allowed. At the outset talking is allowed.
.Sh FILES .Sh FILES
.Bl -tag -width /var/run/utmp -compact .Bl -tag -width /var/run/utx.active -compact
.It Pa /etc/hosts .It Pa /etc/hosts
to find the recipient's machine to find the recipient's machine
.It Pa /var/run/utmp .It Pa /var/run/utx.active
to find the recipient's tty to find the recipient's tty
.El .El
.Sh SEE ALSO .Sh SEE ALSO
+3 -3
View File
@@ -46,14 +46,14 @@ The
utility lists the login names of the users currently on the system, utility lists the login names of the users currently on the system,
in sorted order, space separated, on a single line. in sorted order, space separated, on a single line.
.Sh FILES .Sh FILES
.Bl -tag -width /var/run/utmp .Bl -tag -width /var/run/utx.active
.It Pa /var/run/utmp .It Pa /var/run/utx.active
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr finger 1 , .Xr finger 1 ,
.Xr last 1 , .Xr last 1 ,
.Xr who 1 , .Xr who 1 ,
.Xr utmp 5 .Xr getutxent 3
.Sh HISTORY .Sh HISTORY
The The
.Nm .Nm
+2 -2
View File
@@ -87,8 +87,8 @@ If one or more
.Ar user .Ar user
names are specified, the output is restricted to those users. names are specified, the output is restricted to those users.
.Sh FILES .Sh FILES
.Bl -tag -width ".Pa /var/run/utmp" -compact .Bl -tag -width ".Pa /var/run/utx.active" -compact
.It Pa /var/run/utmp .It Pa /var/run/utx.active
list of users on the system list of users on the system
.El .El
.Sh COMPATIBILITY .Sh COMPATIBILITY
+13 -13
View File
@@ -90,36 +90,36 @@ Equivalent to
By default, By default,
.Nm .Nm
gathers information from the file gathers information from the file
.Pa /var/run/utmp . .Pa /var/run/utx.active .
An alternate An alternate
.Ar file .Ar file
may be specified which is usually may be specified which is usually
.Pa /var/log/wtmp .Pa /var/log/utx.log
(or (or
.Pa /var/log/wtmp.[0-6] .Pa /var/log/utx.log.[0-6]
depending on site policy as depending on site policy as
.Pa wtmp .Pa utx.log
can grow quite large and daily versions may or may not can grow quite large and daily versions may or may not
be kept around after compression by be kept around after compression by
.Xr ac 8 ) . .Xr ac 8 ) .
The The
.Pa wtmp .Pa utx.log
file contains a record of every login, logout, file contains a record of every login, logout,
crash, shutdown and date change crash, shutdown and date change
since since
.Pa wtmp .Pa utx.log
was last truncated or was last truncated or
created. created.
.Pp .Pp
If If
.Pa /var/log/wtmp .Pa /var/log/utx.log
is being used as the file, the user name may be empty is being used as the file, the user name may be empty
or one of the special characters '|', '}' and '~'. or one of the special characters '|', '}' and '~'.
Logouts produce Logouts produce
an output line without any user name. an output line without any user name.
For more information on the For more information on the
special characters, see special characters, see
.Xr utmp 5 . .Xr getutxent 3 .
.Sh ENVIRONMENT .Sh ENVIRONMENT
The The
.Ev COLUMNS , LANG , LC_ALL .Ev COLUMNS , LANG , LC_ALL
@@ -130,10 +130,10 @@ environment variables affect the execution of
as described in as described in
.Xr environ 7 . .Xr environ 7 .
.Sh FILES .Sh FILES
.Bl -tag -width /var/log/wtmp.[0-6] -compact .Bl -tag -width /var/log/utx.log.[0-6] -compact
.It Pa /var/run/utmp .It Pa /var/run/utx.active
.It Pa /var/log/wtmp .It Pa /var/log/utx.log
.It Pa /var/log/wtmp.[0-6] .It Pa /var/log/utx.log.[0-6]
.El .El
.Sh EXIT STATUS .Sh EXIT STATUS
.Ex -std .Ex -std
@@ -141,7 +141,7 @@ as described in
.Xr last 1 , .Xr last 1 ,
.Xr users 1 , .Xr users 1 ,
.Xr w 1 , .Xr w 1 ,
.Xr utmp 5 .Xr getutxent 3
.Sh STANDARDS .Sh STANDARDS
The The
.Nm .Nm
+9 -9
View File
@@ -45,7 +45,7 @@
.Op Ar users ... .Op Ar users ...
.Sh DESCRIPTION .Sh DESCRIPTION
If the file If the file
.Pa /var/log/wtmp .Pa /var/log/utx.log
exists, a record of individual login and logout exists, a record of individual login and logout
times are written to it by times are written to it by
.Xr login 1 .Xr login 1
@@ -86,7 +86,7 @@ flags may be specified.
Read connect time data from Read connect time data from
.Ar wtmp .Ar wtmp
instead of the default file, instead of the default file,
.Pa /var/log/wtmp . .Pa /var/log/utx.log .
.It Ar users ... .It Ar users ...
Display totals for the given individuals only. Display totals for the given individuals only.
.El .El
@@ -95,20 +95,20 @@ If no arguments are given,
.Nm .Nm
displays the total connect time for all displays the total connect time for all
accounts with login sessions recorded in accounts with login sessions recorded in
.Pa wtmp . .Pa utx.log .
.Pp .Pp
The default The default
.Pa wtmp .Pa utx.log
file will increase without bound unless it is truncated. file will increase without bound unless it is truncated.
It is normally truncated by the daily scripts run It is normally truncated by the daily scripts run
by by
.Xr cron 8 , .Xr cron 8 ,
which rename and rotate the which rename and rotate the
.Pa wtmp .Pa utx.log
files, keeping a week's worth of data on files, keeping a week's worth of data on
hand. hand.
No login or connect time accounting is performed if No login or connect time accounting is performed if
.Pa /var/log/wtmp .Pa /var/log/utx.log
does not exist. does not exist.
.Pp .Pp
For example, For example,
@@ -122,15 +122,15 @@ allows times recorded in
to be charged out at a different rate than to be charged out at a different rate than
.Pa other . .Pa other .
.Sh FILES .Sh FILES
.Bl -tag -width /var/log/wtmp -compact .Bl -tag -width /var/log/utx.log -compact
.It Pa /var/log/wtmp .It Pa /var/log/utx.log
connect time accounting file connect time accounting file
.El .El
.Sh EXIT STATUS .Sh EXIT STATUS
.Ex -std .Ex -std
.Sh SEE ALSO .Sh SEE ALSO
.Xr login 1 , .Xr login 1 ,
.Xr utmp 5 , .Xr getutxent 3 ,
.Xr init 8 , .Xr init 8 ,
.Xr sa 8 .Xr sa 8
.\" .Sh NOTES .\" .Sh NOTES
+3 -3
View File
@@ -64,13 +64,13 @@ utility differs from
in that it only prints information regarding the very last login session. in that it only prints information regarding the very last login session.
The last login database is never turned over or deleted in standard usage. The last login database is never turned over or deleted in standard usage.
.Sh FILES .Sh FILES
.Bl -tag -width /var/log/lastlog -compact .Bl -tag -width /var/log/utx.lastlogin -compact
.It Pa /var/log/lastlog .It Pa /var/log/utx.lastlogin
last login database last login database
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr last 1 , .Xr last 1 ,
.Xr lastlog 5 , .Xr getutxent 3 ,
.Xr ac 8 .Xr ac 8
.Sh AUTHORS .Sh AUTHORS
.An John M. Vinopal .An John M. Vinopal
+2 -3
View File
@@ -188,9 +188,8 @@ system call, with any trailing domain name omitted.
The array at the end of the message contains information about The array at the end of the message contains information about
the users logged in to the sending machine. the users logged in to the sending machine.
This information This information
includes the contents of the includes the contents of the entry from the user accounting database
.Xr utmp 5 for each non-idle terminal line and a value indicating the
entry for each non-idle terminal line and a value indicating the
time in seconds since a character was last received on the terminal line. time in seconds since a character was last received on the terminal line.
.Pp .Pp
Messages received by the Messages received by the