]>
Commit | Line | Data |
---|---|---|
3d9156a7 A |
1 | --- utmpx.5.orig 2004-07-13 09:15:18.000000000 -0700 |
2 | +++ utmpx.5 2004-08-05 15:33:40.000000000 -0700 | |
3 | @@ -38,23 +38,16 @@ | |
4 | .Dt UTMPX 5 | |
5 | .Os | |
6 | .Sh NAME | |
7 | -.Nm utmpx , | |
8 | -.Nm wtmpx , | |
9 | -.Nm lastlogx | |
10 | +.Nm utmpx | |
11 | .Nd user accounting database | |
12 | .Sh SYNOPSIS | |
13 | .In utmpx.h | |
14 | .Sh DESCRIPTION | |
15 | The | |
16 | .Aq Pa utmpx.h | |
17 | -header defines the structures and functions for logging user. | |
18 | +header defines the structure and functions for logging user. | |
19 | Currently logged in users are tracked in | |
20 | -.Pa /var/run/utmpx , | |
21 | -a list of all logins and logouts, as well as all shutdowns, reboots | |
22 | -and date changes, is kept in | |
23 | -.Pa /var/log/wtmpx , | |
24 | -and the last login of each user is noted in | |
25 | -.Pa /var/log/lastlogx . | |
26 | +.Pa /var/run/utmpx . | |
27 | The files are not automatically created if they do not exist; they | |
28 | must be created manually. | |
29 | .Pp | |
30 | @@ -62,76 +55,18 @@ | |
31 | .Nm utmpx | |
32 | file is described in | |
33 | .Xr endutxent 3 . | |
34 | -.Pp | |
35 | -The | |
36 | -.Nm wtmpx | |
37 | -file can grow rapidly on busy systems, and is normally rotated with | |
38 | -.Xr newsyslog 8 . | |
39 | -.Pp | |
40 | -In the event of a date change, a shutdown, or a reboot, the following | |
41 | -items are logged in the | |
42 | -.Nm wtmpx | |
43 | -file: | |
44 | -.Bl -tag -width shutdownxx -compact -offset indent | |
45 | -.It Li date | |
46 | -The system time has been manually or automatically updated by | |
47 | -.Xr date 1 . | |
48 | -The command name | |
49 | -.Em date | |
50 | -is recorded in the field | |
51 | -.Fa ut_name . | |
52 | -In the field | |
53 | -.Fa ut_line , | |
54 | -the character | |
55 | -.Ql \\*(Ba | |
56 | -indicates the time prior to the change, and the character | |
57 | -.Ql \&{ | |
58 | -indicates the new time. | |
59 | -.It Li reboot | |
60 | -.It Li shutdown | |
61 | -A system reboot or shutdown has been initiated. | |
62 | -The character | |
63 | -.Ql \&~ | |
64 | -is placed in the field | |
65 | -.Fa ut_line , | |
66 | -and | |
67 | -.Li reboot | |
68 | -or | |
69 | -.Li shutdown | |
70 | -in the field | |
71 | -.Fa ut_name | |
72 | -(see | |
73 | -.Xr shutdown 8 | |
74 | -and | |
75 | -.Xr reboot 8 ) , | |
76 | -using | |
77 | -.Xr logwtmpx 3 . | |
78 | -.Pp | |
79 | -.El | |
80 | +For compatibility, changes to | |
81 | +.Nm utmpx | |
82 | +are reflected in | |
83 | +.Xr utmp 3 , | |
84 | +but not the other way around. | |
85 | .Sh FILES | |
86 | -.Bl -tag -width /var/log/lastlogx -compact | |
87 | +.Bl -tag -width /var/log/utmpx -compact | |
88 | .It Pa /var/run/utmpx | |
89 | The | |
90 | .Nm utmpx | |
91 | file. | |
92 | -.It Pa /var/log/wtmpx | |
93 | -The | |
94 | -.Nm wtmpx | |
95 | -file. | |
96 | -.It Pa /var/log/lastlogx | |
97 | -The | |
98 | -.Nm lastlogx | |
99 | -file. | |
100 | .El | |
101 | .Sh SEE ALSO | |
102 | -.Xr last 1 , | |
103 | -.Xr login 1 , | |
104 | -.Xr rwho 1 , | |
105 | -.Xr w 1 , | |
106 | -.Xr who 1 , | |
107 | .Xr endutxent 3 , | |
108 | -.Xr logwtmpx 3 , | |
109 | -.Xr ac 8 , | |
110 | -.Xr init 8 , | |
111 | -.Xr newsyslog 8 , | |
112 | -.Xr reboot 8 | |
113 | +.Xr utmp 5 |