1752565 Members
5226 Online
108788 Solutions
New Discussion юеВ

"last" command coredump

 
SOLVED
Go to solution
Frank Li
Trusted Contributor

"last" command coredump

when I run last command (whether as root or normal user )
it prompts "Coredump"

#last
Memory fault(coredump)

where is the problem ?
(The file /var/adm/wtmp exists )
Hi Friend
4 REPLIES 4
Printaporn_1
Esteemed Contributor
Solution

Re: "last" command coredump

that may be fall into 2 cases

1. last binary is corrupt , using cksum compare with last in same HP-UX version.

2. wtmp is corrupt
enjoy any little thing in my life
R Madhavan
Frequent Advisor

Re: "last" command coredump

try by clearing the wtmp file.
#mv wtmp wtmp.maybebad
#>wtmp
#last
federico_3
Honored Contributor

Re: "last" command coredump

to get the same informations read wtmp file like this:

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


Bye
federico
Frank Li
Trusted Contributor

Re: "last" command coredump

It seems that the wtmp file is corrupted .

thanks to all.
Hi Friend