tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* bad wtmp and runaway accounting
@ 2001-04-20 18:34 Chris Loken
  0 siblings, 0 replies; only message in thread
From: Chris Loken @ 2001-04-20 18:34 UTC (permalink / raw)
  To: tru64-unix-managers


I'm having problems with accounting on a V5.1 system. The problem
fundamentally seems to involve a corrupted wtmp file. 

Exact details and behaviour vary but, for example;

# /usr/sbin/acct/acctcon1  </var/adm/wtmp
bad wtmp: offset 1568.
bad record is:  	=t-	3905517474781593600	Wed Nov 26 17:04:48 2031 EST 

The date (2031!) is clearly bogus. I started (several times) with a
fresh wtmp ("cat /dev/null > /var/adm/wtmp") and after a while
(generally a few minutes) the file was again corrupted. 

Trying "/usr/sbin/acct/fwtmp < /var/adm/wtmp" results in poorly
formatted output with a bunch of Dec 31 1969 entries (and the above Nov
one). 

Issuing "/usr/sbin/acct/wtmpfix /var/adm/wtmp" returns a string of
gibberish and English but does not change the timestamp on wtmp.

/usr/include/utmp.h has not been messed with since the installation. 

Any suggestions/ideas?

  Thanks,

      Chris

cloken@cita.utoronto.ca

-- 
----------------------------------------------------
Chris Loken                     Phone: 416-978-5619
Computing Facility Manager      Fax:   416-978-3921
Canadian Institute for Theoretical Astrophysics

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-20 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-20 18:34 bad wtmp and runaway accounting Chris Loken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox