Operating System - HP-UX
1834469 Members
2886 Online
110067 Solutions
New Discussion

Re: "last" command not working properly

 
SOLVED
Go to solution
Harri Muttilainen
Occasional Advisor

"last" command not working properly

Hi!

I have two hp-ux 11.00 L2000 servers on which the last command does not report the logins correctly (at all actually). The /var/adm/wtmp file is growing after each login and I can see with fwtmp that the data is there (dates are wrong though), but the only thing that last command returns is:

wtmp begins Mon Aug 27 10:27

Any ideas?
That wasn't me! I didn't say that!
3 REPLIES 3
Victor BERRIDGE
Honored Contributor
Solution

Re: "last" command not working properly

Hi,

You could do a cleanup :
cat /var/adm/wtmp |/usr/sbin/acct/fwtmp > /tmp/ascii_wtmp
vi /tmp/ascii_wtp # correct or delete...
cat /tmp/ascii_wtmp |usr/sbin/acct/fwtmp -ic > /var/adm/wtmp

Just thoughts

All the best
Victor
Vincenzo Restuccia
Honored Contributor

Re: "last" command not working properly

Harri Muttilainen
Occasional Advisor

Re: "last" command not working properly

Thanks, problem solved!

Regards Harri
That wasn't me! I didn't say that!