1 .\" $NetBSD: utmpx.5,v 1.6 2007/01/31 15:41:37 njoly Exp $
3 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Thomas Klausner.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
37 .Nd user accounting database
45 the extended databases in
49 reserve more space for logging hostnames, and also
50 information on a process' ID, termination signal and exit status.
54 header defines the structures and functions for logging user.
55 Currently logged in users are tracked in
57 a list of all logins and logouts, as well as all shutdowns, reboots
58 and date changes, is kept in
60 and the last login of each user is noted in
61 .Pa /var/log/lastlogx .
70 file can grow rapidly on busy systems, and is normally rotated with
73 In the event of a date change, a shutdown, or a reboot, the following
74 items are logged in the
77 .Bl -tag -width shutdownxx -compact -offset indent
79 The system time has been manually or automatically updated by
83 is recorded in the field
89 indicates the time prior to the change, and the character
91 indicates the new time.
94 A system reboot or shutdown has been initiated.
97 is placed in the field
114 .Bl -tag -width /var/log/lastlogx -compact
115 .It Pa /var/run/utmpx
119 .It Pa /var/log/wtmpx
123 .It Pa /var/log/lastlogx