From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d2590358f5ec8543 X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,d2590358f5ec8543 X-Google-Attributes: gidf678f,public From: Peter Mayne Subject: Re: Q: accounting on dUnix Date: 1996/07/31 Message-ID: <31FEA3E9.646@cao.mts.dec.com>#1/1 X-Deja-AN: 171094984 cache-post-path: stevo.stl.dec.com!unknown@chmeee.cao.dec.com references: <4tjj2v$8sa@hacgate2.hac.com> content-type: text/plain; charset=us-ascii organization: Digital Equipment Corporation mime-version: 1.0 newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc x-mailer: Mozilla 2.02I (WinNT; I) 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 # 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.