|
|
1.1 ! root 1: .TH UTMP 5 ! 2: .CT 1 sa_mortals ! 3: .SH NAME ! 4: utmp, wtmp \- login records ! 5: .SH SYNOPSIS ! 6: .B #include <utmp.h> ! 7: .SH DESCRIPTION ! 8: The ! 9: .I utmp ! 10: file allows one to discover information about who is currently ! 11: logged in. ! 12: The file is a sequence of entries with the following ! 13: structure declared in the include file: ! 14: .IP ! 15: .EX ! 16: .ta .5i +.5i +\w'ut_name[8]; 'u ! 17: struct utmp { ! 18: char ut_line[8]; /* tty name */ ! 19: char ut_name[8]; /* user id */ ! 20: long ut_time; /* time on */ ! 21: }; ! 22: .EE ! 23: .PP ! 24: This structure gives the name of the special file ! 25: associated with the user's terminal, the user's login name, ! 26: and the time of the login in the form of ! 27: .IR time (2). ! 28: .PP ! 29: The ! 30: .I wtmp ! 31: file records logins and logouts. ! 32: Its format is exactly like ! 33: .I utmp ! 34: except that ! 35: a null user name indicates a logout on the associated ! 36: terminal. ! 37: Furthermore, the terminal name ! 38: .L ~ ! 39: indicates that the ! 40: system was rebooted at the indicated time; ! 41: the adjacent pair of entries with terminal names ! 42: .L | ! 43: and ! 44: .L } ! 45: indicate the system-maintained time ! 46: just before and just after a ! 47: .IR date (1) ! 48: command changed the system's idea of the time. ! 49: .PP ! 50: .I Wtmp ! 51: is maintained by ! 52: .IR login (8) ! 53: and ! 54: .IR init (8). ! 55: Neither of these programs creates the file, ! 56: so if it is removed record-keeping is turned off. ! 57: It is summarized by ! 58: .IR ac (8). ! 59: .SH FILES ! 60: .F /etc/utmp ! 61: .br ! 62: .F /usr/adm/wtmp ! 63: .SH "SEE ALSO" ! 64: .IR login (8), ! 65: .IR init (8), ! 66: .IR who (1), ! 67: .IR ac (8)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.