From: Neta Hedberg <neta.hedberg () sigit ! se>
To: tru64-unix-managers
Subject: SUMMARY: New wtmp-file?
Date: Wed, 10 May 2000 09:28:52 +0000 [thread overview]
Message-ID: <96079346819516.tru64-unix-managers.marc@archive.invalid> (raw)
As always I recieved rapid answers that helped me.
Thanks to:
Michael James Bradford <mjbr@tdk.dk>
Esa Hiltula <esah@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
reply other threads:[~2000-05-10 9:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox