[H-GEN] wtmp

Martin Pool martinp at mincom.com
Tue Jan 4 00:36:34 EST 2000


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]

> >  I have a wtmp file in /var/log which is slowly growing, I have checked
> > the man page (utmp) which doesnt clarify things much for me. How can I
> > open it and trim its size
> 
> David,
> the way to trim it is to move it to another filename, gzip/{compress using
> favourite unix compression util}, touch /var/log/wtmp and wait for somebody to
> login.

(Do what the nice Sun man said.)

Most systems should come with a cron job to truncate it automatically. 
What system/distribution are you using?  Is something broken?

-- 
Martin

As I've explained, selling OSes for money is a basically untenable
position...
				-- Neal Stephenson

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list