[H-GEN] wtmp

James McPherson - Customer Technical Support Engineer James.McPherson at Aus.Sun.COM
Tue Jan 4 00:24:25 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.

You really shouldn't try to open and trim it because you're liable to get a 
corrupt file instead.

cheers,
James C. McPherson
--
Customer Technical Support Engineer      828 Pacific Highway 
Sun Microsystems Australia Pty Ltd       Gordon NSW 2072
Support Helpline: 1-800-555-786


--
* 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