02-26-2001 03:56 AM
I used wtmpfix but /usr/bin/last dumps on.
I move wtmp to wtmp.old and create a new wtmp to log new logins. But wtmp.old is still corrupted.
How to proceed to solve the wtmp corruption ?
Solved! Go to Solution.
02-26-2001 04:36 AM
the following will convert it to ASCII file
#/usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/file
then you can either edit the file or read it.
Then you can convert it back to binary form:
##/usr/sbin/acct/fwtmp -ic < /tmp/file > /var/adm/wtmp
02-26-2001 04:57 AM
If you do not use email heavily, then the /var/mail directory can be a part of /var. Similarly, if spooling os limited to a few printers and not used for PC shares (where spool files can become gigantic), spooling can also be part of /var. /var/adm/sw should always be made separate as it will grow quite large with patches and application updates.