From: Peter Mayne <Peter.Mayne@cao.mts.dec.com>
Subject: Re: Q: accounting on dUnix
Date: 1996/07/31 [thread overview]
Message-ID: <31FEA3E9.646@cao.mts.dec.com> (raw)
In-Reply-To: 4tjj2v$8sa@hacgate2.hac.com
Jeff Dykzeul wrote:
> I think the "last" command will be adequate for my reporting needs, but I
> also need to be able to clear out the wtmp file. I can't find or am
> overlooking the command or script to do this. In VMS typically you would
> close the accounting database, rename it to some archival name, and then
> start a new one. Basically I want to do the same thing in dUnix. Anybody
> have any suggestions?
man wtmp gives a rather indirect hint.
The wtmp file is maintained by login(1) and init(8). Neither of these pro-
grams creates the file, so, if it is removed, record keeping is turned off.
So:
# mv /var/adm/wtmp <archival name>
# touch /var/adm/wtmp
--
PJDM
Digital Equipment Corporation (Australia), Canberra, ACT
-------------------------------------------------------------------------------
These are my opinions, and have nothing to do with Digital.
I design Internet Service Providers. It's a job.
prev parent reply other threads:[~1996-07-31 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-29 4:00 Q: accounting on dUnix Jeff Dykzeul
1996-07-31 4:00 ` Peter Mayne [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox