summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-01-21 17:25:12 +0000
committered <ed@FreeBSD.org>2010-01-21 17:25:12 +0000
commitb28da9a61e28e861700fcb32723aff38ecdf76a5 (patch)
tree47f6d3342be9519d56146811f6d92bd8dadf99b0
parentf79d0f71d84e1129afe418139af4233669d52f17 (diff)
downloadFreeBSD-src-b28da9a61e28e861700fcb32723aff38ecdf76a5.zip
FreeBSD-src-b28da9a61e28e861700fcb32723aff38ecdf76a5.tar.gz
Remove stale references to utmp(5) and its corresponding filenames.
I removed utmp and its manpage, but not other manpages referring to it.
-rw-r--r--bin/date/date.14
-rw-r--r--lib/libpam/modules/pam_lastlog/pam_lastlog.89
-rw-r--r--libexec/comsat/comsat.82
-rw-r--r--libexec/ftpd/ftpd.83
-rw-r--r--sbin/init/init.820
-rw-r--r--sbin/reboot/reboot.85
-rw-r--r--share/man/man3/sysexits.32
-rw-r--r--share/man/man7/hier.712
-rw-r--r--share/security/lomac-policy.contexts4
-rw-r--r--usr.bin/at/at.man4
-rw-r--r--usr.bin/finger/finger.17
-rw-r--r--usr.bin/last/last.112
-rw-r--r--usr.bin/ncplist/ncplist.12
-rw-r--r--usr.bin/talk/talk.14
-rw-r--r--usr.bin/users/users.16
-rw-r--r--usr.bin/w/w.14
-rw-r--r--usr.bin/who/who.126
-rw-r--r--usr.sbin/ac/ac.818
-rw-r--r--usr.sbin/lastlogin/lastlogin.86
-rw-r--r--usr.sbin/rwhod/rwhod.85
20 files changed, 70 insertions, 85 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1
index b57f4ab..496f197 100644
--- a/bin/date/date.1
+++ b/bin/date/date.1
@@ -299,7 +299,7 @@ for more information.
.El
.Sh FILES
.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
.It Pa /var/log/messages
record of the user setting the time
@@ -406,9 +406,9 @@ fails.
.Sh SEE ALSO
.Xr locale 1 ,
.Xr gettimeofday 2 ,
+.Xr getutxent 3 ,
.Xr strftime 3 ,
.Xr strptime 3 ,
-.Xr utmp 5 ,
.Xr timed 8
.Rs
.%T "TSP: The Time Synchronization Protocol for UNIX 4.3BSD"
diff --git a/lib/libpam/modules/pam_lastlog/pam_lastlog.8 b/lib/libpam/modules/pam_lastlog/pam_lastlog.8
index 9fc7e45..8ee5dec 100644
--- a/lib/libpam/modules/pam_lastlog/pam_lastlog.8
+++ b/lib/libpam/modules/pam_lastlog/pam_lastlog.8
@@ -65,12 +65,7 @@ and terminate
sessions.
The
.Fn pam_sm_open_session
-function records the session in the
-.Xr utmp 5 ,
-.Xr wtmp 5
-and
-.Xr lastlog 5
-databases.
+function records the session in the user accounting database.
The
.Fn pam_sm_close_session
function does nothing.
@@ -90,10 +85,10 @@ Ignore I/O failures.
.Sh SEE ALSO
.Xr last 1 ,
.Xr w 1 ,
+.Xr getutxent 3 ,
.Xr login 3 ,
.Xr logout 3 ,
.Xr pam.conf 5 ,
-.Xr utmp 5 ,
.Xr lastlogin 8 ,
.Xr pam 8
.Sh AUTHORS
diff --git a/libexec/comsat/comsat.8 b/libexec/comsat/comsat.8
index 50b6b11..1f35cff 100644
--- a/libexec/comsat/comsat.8
+++ b/libexec/comsat/comsat.8
@@ -91,7 +91,7 @@ If
omitted, standard mailbox assumed.
.Sh FILES
.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
.It Pa /var/mail/user
standard mailbox
diff --git a/libexec/ftpd/ftpd.8 b/libexec/ftpd/ftpd.8
index 9334bd9..d7e5deb 100644
--- a/libexec/ftpd/ftpd.8
+++ b/libexec/ftpd/ftpd.8
@@ -219,8 +219,7 @@ This option may be overridden by
A synonym for
.Fl d .
.It Fl W
-Do not log FTP sessions to
-.Pa /var/log/wtmp .
+Do not log FTP sessions to the user accounting database.
.El
.Pp
The file
diff --git a/sbin/init/init.8 b/sbin/init/init.8
index bd21b48..abf07ad 100644
--- a/sbin/init/init.8
+++ b/sbin/init/init.8
@@ -148,12 +148,9 @@ dies, either because the user logged out
or an abnormal termination occurred (a signal),
the
.Nm
-utility wakes up, deletes the user
-from the
-.Xr utmp 5
-file of current users and records the logout in the
-.Xr wtmp 5
-file.
+utility wakes up and records the logout in the the user accounting
+database (see
+.Xr getutxent 3 ).
The cycle is
then restarted by
.Nm
@@ -207,13 +204,6 @@ If a line is commented out or deleted from
.Xr ttys 5 ,
.Nm
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
The
.Nm
@@ -316,9 +306,9 @@ system console device
.It Pa /dev/tty*
terminal ports found in
.Xr ttys 5
-.It Pa /var/run/utmp
+.It Pa /var/run/utx.active
record of current users on the system
-.It Pa /var/log/wtmp
+.It Pa /var/log/utx.log
record of all logins and logouts
.It Pa /etc/ttys
the terminal initialization information file
diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8
index b9baf34..3e846cb 100644
--- a/sbin/reboot/reboot.8
+++ b/sbin/reboot/reboot.8
@@ -61,9 +61,8 @@ a
(and subsequently a
.Dv SIGKILL )
and, respectively, halt or restart the system.
-The action is logged, including entering a shutdown record into the
-.Xr wtmp 5
-file.
+The action is logged, including entering a shutdown record into the user
+accounting database.
.Pp
The options are as follows:
.Bl -tag -width indent
diff --git a/share/man/man3/sysexits.3 b/share/man/man3/sysexits.3
index b7c006a..4661c9d 100644
--- a/share/man/man3/sysexits.3
+++ b/share/man/man3/sysexits.3
@@ -97,7 +97,7 @@ does not exist in the passwd file.
.It Sy EX_OSFILE Pq 72
Some system file (e.g.,
.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
(e.g., syntax error).
.It Sy EX_CANTCREAT Pq 73
diff --git a/share/man/man7/hier.7 b/share/man/man7/hier.7
index 40c2d0c..19dee42 100644
--- a/share/man/man7/hier.7
+++ b/share/man/man7/hier.7
@@ -735,10 +735,14 @@ kerberos server databases; see
miscellaneous system log files
.Pp
.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;
see
-.Xr wtmp 5
+.Xr getutxent 3
.El
.Pp
.It Pa mail/
@@ -769,10 +773,10 @@ writable by the
.Dq network
group for command connection sockets; see
.Xr ppp 8
-.It Pa utmp
+.It Pa utx.active
database of current users;
see
-.Xr utmp 5
+.Xr getutxent 5
.El
.Pp
.It Pa rwho/
diff --git a/share/security/lomac-policy.contexts b/share/security/lomac-policy.contexts
index e01bd28..6529d08 100644
--- a/share/security/lomac-policy.contexts
+++ b/share/security/lomac-policy.contexts
@@ -25,5 +25,5 @@
(/mnt)?/cdrom(/.*)? lomac/high
(/usr)?/home/(ftp|samba)(/.*)? lomac/high
/var/log/sendmail\.st lomac/low
-/var/run/utmp lomac/equal
-/var/log/(lastlog|wtmp) lomac/equal
+/var/run/utx.active lomac/equal
+/var/log/utx.(lastlogin|log) lomac/equal
diff --git a/usr.bin/at/at.man b/usr.bin/at/at.man
index bca1051..a876974 100644
--- a/usr.bin/at/at.man
+++ b/usr.bin/at/at.man
@@ -313,7 +313,7 @@ letter pair is not specified, the value defaults to 0.
directory containing job files
.It Pa _ATSPOOL_DIR
directory containing output spool files
-.It Pa /var/run/utmp
+.It Pa /var/run/utx.active
login records
.It Pa _PERM_PATH/at.allow
allow permission control
@@ -338,7 +338,7 @@ with minor enhancements by
.An Joe Halpin Aq joe.halpin@attbi.com .
.Sh BUGS
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
time
.Nm
diff --git a/usr.bin/finger/finger.1 b/usr.bin/finger/finger.1
index 590a382..c643c18 100644
--- a/usr.bin/finger/finger.1
+++ b/usr.bin/finger/finger.1
@@ -100,8 +100,7 @@ of the remote host when used in conjunction with the
.Fl h
option.
.It Fl k
-Disable all use of
-.Xr utmp 5 .
+Disable all use of the user accounting database.
.It Fl l
Produce a multi-line format displaying all of the information
described for the
@@ -221,10 +220,10 @@ This variable may be set with favored options to
.Nm .
.El
.Sh FILES
-.Bl -tag -width /var/log/lastlog -compact
+.Bl -tag -width /var/log/utx.lastlogin -compact
.It Pa /etc/finger.conf
alias definition data base
-.It Pa /var/log/lastlog
+.It Pa /var/log/utx.lastlogin
last login data base
.El
.Sh SEE ALSO
diff --git a/usr.bin/last/last.1 b/usr.bin/last/last.1
index f838c4a..223a2c6 100644
--- a/usr.bin/last/last.1
+++ b/usr.bin/last/last.1
@@ -83,7 +83,7 @@ be reported.
This may be used with the
.Fl f
option to derive the results from stored
-.Pa wtmp
+.Pa utx.log
files.
When this argument is provided, all other options except for
.Fl f
@@ -141,7 +141,7 @@ letter pair is not specified, the value defaults to 0.
Read the file
.Ar file
instead of the default,
-.Pa /var/log/wtmp .
+.Pa /var/log/utx.log .
.It Fl h Ar host
.Ar Host
names may be names or internet numbers.
@@ -196,13 +196,13 @@ If interrupted with a quit signal
indicates how
far the search has progressed and then continues.
.Sh FILES
-.Bl -tag -width /var/log/wtmp -compact
-.It Pa /var/log/wtmp
+.Bl -tag -width /var/log/utx.log -compact
+.It Pa /var/log/utx.log
login data base
.El
.Sh SEE ALSO
.Xr lastcomm 1 ,
-.Xr utmp 5 ,
+.Xr getutxent 3 ,
.Xr ac 8
.Sh HISTORY
A
@@ -212,7 +212,7 @@ utility appeared in
.Sh BUGS
If a login shell should terminate abnormally for some reason, it is likely
that a logout record will not be written to the
-.Pa wtmp
+.Pa utx.log
file.
In this case,
.Nm
diff --git a/usr.bin/ncplist/ncplist.1 b/usr.bin/ncplist/ncplist.1
index 753be8f..335fcc7 100644
--- a/usr.bin/ncplist/ncplist.1
+++ b/usr.bin/ncplist/ncplist.1
@@ -69,7 +69,7 @@ Displays mounted volumes on a given
.Sh IMPLEMENTATION NOTES
This utility is provided mostly for educational purposes.
.Sh FILES
-.Bl -tag -width /var/log/wtmp -compact
+.Bl -tag -width /var/log/utx.log -compact
.It Pa ~/.nwfsrc
keeps description for each connection.
See
diff --git a/usr.bin/talk/talk.1 b/usr.bin/talk/talk.1
index 775b6d1..6af62d7 100644
--- a/usr.bin/talk/talk.1
+++ b/usr.bin/talk/talk.1
@@ -116,10 +116,10 @@ Permission to talk may be denied or granted by use of the
command.
At the outset talking is allowed.
.Sh FILES
-.Bl -tag -width /var/run/utmp -compact
+.Bl -tag -width /var/run/utx.active -compact
.It Pa /etc/hosts
to find the recipient's machine
-.It Pa /var/run/utmp
+.It Pa /var/run/utx.active
to find the recipient's tty
.El
.Sh SEE ALSO
diff --git a/usr.bin/users/users.1 b/usr.bin/users/users.1
index c3454c6..2179c5e 100644
--- a/usr.bin/users/users.1
+++ b/usr.bin/users/users.1
@@ -46,14 +46,14 @@ The
utility lists the login names of the users currently on the system,
in sorted order, space separated, on a single line.
.Sh FILES
-.Bl -tag -width /var/run/utmp
-.It Pa /var/run/utmp
+.Bl -tag -width /var/run/utx.active
+.It Pa /var/run/utx.active
.El
.Sh SEE ALSO
.Xr finger 1 ,
.Xr last 1 ,
.Xr who 1 ,
-.Xr utmp 5
+.Xr getutxent 3
.Sh HISTORY
The
.Nm
diff --git a/usr.bin/w/w.1 b/usr.bin/w/w.1
index 0dfbd1b..26ca42a 100644
--- a/usr.bin/w/w.1
+++ b/usr.bin/w/w.1
@@ -87,8 +87,8 @@ If one or more
.Ar user
names are specified, the output is restricted to those users.
.Sh FILES
-.Bl -tag -width ".Pa /var/run/utmp" -compact
-.It Pa /var/run/utmp
+.Bl -tag -width ".Pa /var/run/utx.active" -compact
+.It Pa /var/run/utx.active
list of users on the system
.El
.Sh COMPATIBILITY
diff --git a/usr.bin/who/who.1 b/usr.bin/who/who.1
index e36b07c..4a5c6a4 100644
--- a/usr.bin/who/who.1
+++ b/usr.bin/who/who.1
@@ -90,36 +90,36 @@ Equivalent to
By default,
.Nm
gathers information from the file
-.Pa /var/run/utmp .
+.Pa /var/run/utx.active .
An alternate
.Ar file
may be specified which is usually
-.Pa /var/log/wtmp
+.Pa /var/log/utx.log
(or
-.Pa /var/log/wtmp.[0-6]
+.Pa /var/log/utx.log.[0-6]
depending on site policy as
-.Pa wtmp
+.Pa utx.log
can grow quite large and daily versions may or may not
be kept around after compression by
.Xr ac 8 ) .
The
-.Pa wtmp
+.Pa utx.log
file contains a record of every login, logout,
crash, shutdown and date change
since
-.Pa wtmp
+.Pa utx.log
was last truncated or
created.
.Pp
If
-.Pa /var/log/wtmp
+.Pa /var/log/utx.log
is being used as the file, the user name may be empty
or one of the special characters '|', '}' and '~'.
Logouts produce
an output line without any user name.
For more information on the
special characters, see
-.Xr utmp 5 .
+.Xr getutxent 3 .
.Sh ENVIRONMENT
The
.Ev COLUMNS , LANG , LC_ALL
@@ -130,10 +130,10 @@ environment variables affect the execution of
as described in
.Xr environ 7 .
.Sh FILES
-.Bl -tag -width /var/log/wtmp.[0-6] -compact
-.It Pa /var/run/utmp
-.It Pa /var/log/wtmp
-.It Pa /var/log/wtmp.[0-6]
+.Bl -tag -width /var/log/utx.log.[0-6] -compact
+.It Pa /var/run/utx.active
+.It Pa /var/log/utx.log
+.It Pa /var/log/utx.log.[0-6]
.El
.Sh EXIT STATUS
.Ex -std
@@ -141,7 +141,7 @@ as described in
.Xr last 1 ,
.Xr users 1 ,
.Xr w 1 ,
-.Xr utmp 5
+.Xr getutxent 3
.Sh STANDARDS
The
.Nm
diff --git a/usr.sbin/ac/ac.8 b/usr.sbin/ac/ac.8
index efe3e23..34484ab 100644
--- a/usr.sbin/ac/ac.8
+++ b/usr.sbin/ac/ac.8
@@ -45,7 +45,7 @@
.Op Ar users ...
.Sh DESCRIPTION
If the file
-.Pa /var/log/wtmp
+.Pa /var/log/utx.log
exists, a record of individual login and logout
times are written to it by
.Xr login 1
@@ -86,7 +86,7 @@ flags may be specified.
Read connect time data from
.Ar wtmp
instead of the default file,
-.Pa /var/log/wtmp .
+.Pa /var/log/utx.log .
.It Ar users ...
Display totals for the given individuals only.
.El
@@ -95,20 +95,20 @@ If no arguments are given,
.Nm
displays the total connect time for all
accounts with login sessions recorded in
-.Pa wtmp .
+.Pa utx.log .
.Pp
The default
-.Pa wtmp
+.Pa utx.log
file will increase without bound unless it is truncated.
It is normally truncated by the daily scripts run
by
.Xr cron 8 ,
which rename and rotate the
-.Pa wtmp
+.Pa utx.log
files, keeping a week's worth of data on
hand.
No login or connect time accounting is performed if
-.Pa /var/log/wtmp
+.Pa /var/log/utx.log
does not exist.
.Pp
For example,
@@ -122,15 +122,15 @@ allows times recorded in
to be charged out at a different rate than
.Pa other .
.Sh FILES
-.Bl -tag -width /var/log/wtmp -compact
-.It Pa /var/log/wtmp
+.Bl -tag -width /var/log/utx.log -compact
+.It Pa /var/log/utx.log
connect time accounting file
.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr login 1 ,
-.Xr utmp 5 ,
+.Xr getutxent 3 ,
.Xr init 8 ,
.Xr sa 8
.\" .Sh NOTES
diff --git a/usr.sbin/lastlogin/lastlogin.8 b/usr.sbin/lastlogin/lastlogin.8
index 03a587d..4d07a2b 100644
--- a/usr.sbin/lastlogin/lastlogin.8
+++ b/usr.sbin/lastlogin/lastlogin.8
@@ -64,13 +64,13 @@ utility differs from
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.
.Sh FILES
-.Bl -tag -width /var/log/lastlog -compact
-.It Pa /var/log/lastlog
+.Bl -tag -width /var/log/utx.lastlogin -compact
+.It Pa /var/log/utx.lastlogin
last login database
.El
.Sh SEE ALSO
.Xr last 1 ,
-.Xr lastlog 5 ,
+.Xr getutxent 3 ,
.Xr ac 8
.Sh AUTHORS
.An John M. Vinopal
diff --git a/usr.sbin/rwhod/rwhod.8 b/usr.sbin/rwhod/rwhod.8
index 642eeeb..59fb4ad 100644
--- a/usr.sbin/rwhod/rwhod.8
+++ b/usr.sbin/rwhod/rwhod.8
@@ -188,9 +188,8 @@ system call, with any trailing domain name omitted.
The array at the end of the message contains information about
the users logged in to the sending machine.
This information
-includes the contents of the
-.Xr utmp 5
-entry for each non-idle terminal line and a value indicating the
+includes the contents of the entry from the user accounting database
+for each non-idle terminal line and a value indicating the
time in seconds since a character was last received on the terminal line.
.Pp
Messages received by the
OpenPOWER on IntegriCloud