On the road to pruning wtmpx

From: Dennis Peterson (dennispe@inetnw.com)
Date: Sun Apr 14 2002 - 03:18:36 EDT


I've stumbled onto a puzzle:

Sol8, using

/usr/lib/acct/fwtmp </var/adm/wtmpx >/tmp/wtmpx.tmp

Then...
/usr/lib/acct/fwtmp -ic </tmp/wtmpx.tmp >/tmp/wtmpx.bin

then...

/usr/lib/fwtmp </tmp/wtmpx.bin >/tmp/wtmpx.ascii2

Still far removed from rocket science at this point...

then...

diff /tmp/wtmpx.ascii /tmp/wtmpx.ascii2

They're very different. In fact, they have no common records. Most notably, the
years in the records of the wtmpx.ascii2 file is 1970. This is not what I
expect. What I expect is that the two ascii files are identical. Here's the
wheel, steer me toward the light.

It was my intention to use the fwtmp utility to prune wtmpx files since it seems
predestined to provide such a service, but 'tis not to be. Any ideas?

dp
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:12 EDT