From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079346819516.tru64-unix-managers.marc@archive.invalid> From: Neta Hedberg Date: Wed, 10 May 2000 09:28:52 +0000 To: tru64-unix-managers Subject: SUMMARY: New wtmp-file? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079346819516 As always I recieved rapid answers that helped me. Thanks to: Michael James Bradford Esa Hiltula 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