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