Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Q: accounting on dUnix
@ 1996-07-29  4:00 Jeff Dykzeul
  1996-07-31  4:00 ` Peter Mayne
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Dykzeul @ 1996-07-29  4:00 UTC (permalink / raw)



 
Hello all.

The next step in my mental conversion from VMS to Unix involves accounting.
The dUnix sysadmin manual talks about accounting database files like
/var/adm/wtmp (login/logout history file) and the various reporting commands
and scripts. 

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? 


TIA

Jeff Dykzeul
Hughes Aircraft Company



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Q: accounting on dUnix
  1996-07-29  4:00 Q: accounting on dUnix Jeff Dykzeul
@ 1996-07-31  4:00 ` Peter Mayne
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Mayne @ 1996-07-31  4:00 UTC (permalink / raw)



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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-07-31  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-29  4:00 Q: accounting on dUnix Jeff Dykzeul
1996-07-31  4:00 ` Peter Mayne

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