* SUMMARY: New wtmp-file?
@ 2000-05-10 9:28 Neta Hedberg
0 siblings, 0 replies; only message in thread
From: Neta Hedberg @ 2000-05-10 9:28 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-05-10 9:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-10 9:28 SUMMARY: New wtmp-file? Neta Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox