Commit | Line | Data |
---|---|---|
3922de1d C |
1 | |
2 | ||
3 | ||
4 | UTMP(5) 1990 UTMP(5) | |
5 | ||
6 | ||
7 | ||
8 | N\bNA\bAM\bME\bE | |
9 | utmp, wtmp - login records | |
10 | ||
11 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
12 | #\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<u\but\btm\bmp\bp.\b.h\bh>\b> | |
13 | ||
14 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
15 | The _\bu_\bt_\bm_\bp file records information about who is currently | |
16 | using the system. The file is a sequence of entries with | |
17 | the following structure, as defined in the include file. | |
18 | ||
19 | #define UT_NAMESIZE 8 | |
20 | #define UT_LINESIZE 8 | |
21 | #define UT_HOSTSIZE 16 | |
22 | struct utmp { | |
23 | char ut_line[UT_NAMESIZE]; | |
24 | char ut_name[UT_LINESIZE]; | |
25 | char ut_host[UT_HOSTSIZE]; | |
26 | time_t ut_time; | |
27 | }; | |
28 | ||
29 | This structure gives the name of the special file associated | |
30 | with the user's terminal, the user's login name, and the | |
31 | time of the login in the form of _\bt_\bi_\bm_\be(3). | |
32 | ||
33 | The _\bw_\bt_\bm_\bp file records all logins and logouts. A null user | |
34 | name indicates a logout on the associated terminal. Furth- | |
35 | ermore, the terminal name `~' indicates that the system was | |
36 | rebooted at the indicated time; in such cases the name will | |
37 | be ``shutdown''. An adjacent pair of entries with terminal | |
38 | names `|' and `{' indicate the system-maintained time just | |
39 | before and just after a _\bd_\ba_\bt_\be command has changed the | |
40 | system's idea of the time. The name for both entries will | |
41 | be ``date''. | |
42 | ||
43 | _\bW_\bt_\bm_\bp is maintained by _\bl_\bo_\bg_\bi_\bn(1) and _\bi_\bn_\bi_\bt(8). Neither of | |
44 | these programs creates the file, so if it is removed | |
45 | record-keeping is turned off. It is summarized by _\bl_\ba_\bs_\bt(1) | |
46 | and _\ba_\bc(8). | |
47 | ||
48 | F\bFI\bIL\bLE\bES\bS | |
49 | /var/run/utmp | |
50 | /var/log/wtmp | |
51 | ||
52 | S\bSE\bEE\bE A\bAL\bLS\bSO\bO | |
53 | last(1), login(1), who(1), ac(8), init(8) | |
54 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | ||
60 | ||
61 | ||
62 | ||
63 | Printed 7/27/90 June 1 | |
64 | ||
65 | ||
66 |