cleaning up utmp/wtmp

From: George Gallen <ggallen_at_slackinc.com>
Date: Thu, 29 May 97 13:01:00 EDT

How do I reset the utmp/wtmp/lastlogin/pacct cleanly?

I want to start the accounting fresh. What what I read in the man's just
making new files is all that is needed (or thats how I read it). I rm +
touched
new files, everything seemed like it was working fine, util I did a "w",
which
only showed me the users that were logged on SINCE I reset the wtmp. and
when anyone would log off their process became zombied, After a reboot
everything was back to normal(?).

To avoid rebooting in the future, (I'm mostly only concerned with keeping
1
to 2 months worth of login information) How does one reset the log files
and
still keep the "w" command seeing everyone who is logged in, as well as
not
having their processes become zombied?

George Gallen
ggallen_at_slackinc.com
Received on Thu May 29 1997 - 19:12:47 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT