Operating System - HP-UX
1831496 Members
3396 Online
110025 Solutions
New Discussion

The 'last' command not working properly

 
SOLVED
Go to solution
Brad Marks
Super Advisor

The 'last' command not working properly

Although wtmp and btmp have a current date/time stamp, the 'last' command's most recent activity is from one week ago! I can't see any recent login/out activity.

Any help very appreciated: Points Assigned

Thanks,
Brad
It's not impossible -- it'll just cost more...
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: The 'last' command not working properly

I suspect that you have corrupt wtmp and/or btmp files. Use fwtmp to convert them to readable text. You can also use fwtmp to convert your cleaned up ASCII files back to binary format. Man fwtmp for details.
If it ain't broke, I can fix that.
Brad Marks
Super Advisor

Re: The 'last' command not working properly

That did the trick.
Much thanks!

Brad
It's not impossible -- it'll just cost more...