Installation guide

Command Description
last
This command displays login information.
lastlogin
This shell script updates the /var/adm/acct/sum/loginlog file
to show the last date that each user logged in.
prctmp
This shell script displays the contents of the session-record file
(usually /var/adm/acct/nite/ctmp) that the acctcon1
command created.
wtmpfix
This command corrects the wtmp connect session records that are
affected by a date modification and validates login names written
to the login name field in the wtmp file.
The /usr/include/utmp.h header file structure is the record format for
the following connect session files:
/var/adm/wtmp
/var/adm/utmp
/var/adm/acct/nite/wtmp.
mmdd
/var/adm/acct/nite/ctmp
The /usr/include/utmp.h header file structure includes nine fields.
Table 12–6 shows the utmp ASCII conversion format for the field number,
member name in the header file structure, its description and, if necessary,
character length.
Table 12–6: The utmp ASCII Conversion Structure Members
Field Member Description
1
ut_user
The user login name, which must have
exactly sizeof(ut_user) characters.
2
ut_id
The inittab ID, which must have exactly
sizeof(ut_id) characters.
3
ut_line
A memory location, where information used
to describe the type of record (for example,
the device name) is stored. It must have
exactly sizeof(ut_line) characters.
4
ut_pid
The process identification number.
5
ut_type
The type of entry, which can specify
several symbolic constant values. The
symbolic constants are defined in the
/usr/include/utmp.h header file.
6
ut_exit.e_termination
The process termination status.
7
ut_exit.e_exit
The process exit status.
12–14 Administering the System Accounting Services