Operating System - HP-UX
1837116 Members
2247 Online
110112 Solutions
New Discussion

How do you fix a corrupted utmpx file without using patches

 
SOLVED
Go to solution
Deborah Schwarzenbach
Occasional Contributor

How do you fix a corrupted utmpx file without using patches

Hello,
Can anyone tell me how to fix a corrupted utmpx file without using patches to do it?
thanks
Debbie
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: How do you fix a corrupted utmpx file without using patches

Generally utmp, wtmp, and utmpx files become corrupted because a system needs patching. However, to fix these files, you can use fwtmp. Fwtmp allows you to read in these files and convert them to text files; it also does the reverse operation. The idea is that you use fwtmp to read the binary version of the files and output to a text file. Edit the text file to remove any offending lines and then use fwtmp to read the fixed text file and output in binary format. Man fwtmp for details.
If it ain't broke, I can fix that.