wtmps, btmps — user login information
hold user and accounting information for such commands as
contains bad login entries for each invalid logon attempt.
contains a record for all logins and logouts apart from accounting records.
These files contain
structure, the key elements of the structure are given below:
char ut_user User login name
char ut_id Unique Id to distinguish an entry
char ut_line Device name
pid_t ut_pid Process Id
short ut_type Type of Entry
struct ut_exit The exit status of a process
struct timeval ut_tv Time entry was made
char ut_host Host name, if remote
uint8_t ut_addr Internet Address of the Host,
short ut_addr_type Flag to identify type of address
#define WTMPS_FILE "/var/adm/wtmps"
#define BTMPS_FILE "/var/adm/btmps"
tend to grow without bound, and should be checked regularly.
Information that is no longer useful should be
removed periodically to prevent the file from becoming too large.
Also note that
are not created by the programs that maintain them.
Thus, if these files are removed, login record-keeping is turned off.
were developed by Hewlett-Packard Company.