The /var/adm/wtmp, or "who temp" file, might cause problems in the day-to-day operation of the accounting system. When the date is changed and the system is in multiuser mode, date change records are written to the /var/adm/wtmp file. When a date change is encountered, the wtmpfix command adjusts the time stamps in the wtmp records. Some combinations of date changes and system restarts may slip past the wtmpfix command and cause the acctcon1 command to fail and the runacct command to send mail to the root and adm accounts listing incorrect dates.
You must have root user or adm group authority.
cd /var/adm/acct/nite
fwtmp < wtmp.mmdd > wtmp.new
The fwtmp command converts wtmp from binary to ASCII.
vi wtmp.new
fwtmp -ic < wtmp.new > wtmp.mmdd
nulladm wtmp
The nulladm command creates the file specified with read and write permissions for the file owner and group, and read permissions for other users. It ensures that the file owner and group are adm.