Become superuser.
Change to the /var/adm/acct/nite directory.
Convert the binary file wtmp.MMDD into the ASCII file xwtmp.
# fwtmp wtmp.MMDD xwtmp |
MMDD |
Pair of two-digit numbers representing the month and day. |
Edit xwtmp. Delete the corrupted files, or delete all records from the beginning up to the date change.
Convert the ASCII file xwtmp to a binary file, overwriting the corrupted file.
# fwtmp -ic xwtmp wtmp.MMDD |