SUMMARY: New wtmp-file?

From: Neta Hedberg <neta.hedberg_at_sigit.se>
Date: Wed, 10 May 2000 11:28:52 +0200

As always I recieved rapid answers that helped me.

Thanks to:
Michael James Bradford <mjbr_at_tdk.dk>
Esa Hiltula <esah_at_oukasrv2.ouka.fi>

Their tips follow. Both worked fine for me.

----------------------- clip ----------------------------------

Hi Neta!
Once a year I have to create new wtmp-files. If I remember correctly, it
can be done like this:
rename old file (mv wtmp wtmp.old)
create new file (touch wtmp)
check owner etc. (chown adm.adm wtmp)
Hope this helps,
-esa

------------------------------------ clip
--------------------------------------------

Hej Neta,
If you want to retain a copy of the wtmp file, then you just copy it to, for
example, wtmp.old.
To empty the wtmp file, copy /dev/null to the existing wtmp file.
Hope this helps
Michael Bradford


-------------------------------------- clip
-----------------------------------------


Hello again gurus,

I guess my question i a relatively simple one. Here it comes:

Every night I run a script that uses the "last"-command to list all users
that have logged in that specific date. Now my wtmp-file is more than a
year old and because of that my script also lists users that were logged in
a year ago. So my question is How do I create a new wtmp file? Can I use
the runacct-command?

I will summarize.

Kind regards

Neta Hedberg
Received on Wed May 10 2000 - 09:29:23 NZST

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