[SunHELP] wtmpx, utmpx, lastlog

Steve Pribyl sunhelp at sunhelp.org
Mon Mar 5 19:33:19 CST 2001


I have been know to do this

cat /dev/null > wtmp 

seems to work just fine

Steve Pribyl
steve at unliketea.com
http://www.unliketea.com/~steve

On Mon, 5 Mar 2001, lou cornetta wrote:

> why don't you copy and compress it or just
> clear the file.
> 
> example
> cp /var/adm/wtmpx /var/adm/wtmpx.`date`
> compress or gzip /var/adm/wtmpx.`date`
> or
> > /var/adm/wtmpx (clears the content of the file)
> 
> --- william.x.ng at verizon.com wrote:
> > 
> > All,
> > Does anyone know how to truncate wtmpx, utmpx and
> > lastlog file? These files
> > are too big to my server and takes up alot of space
> > of my server.
> > 
> > Please help
> > Thanks
> > William
> > 
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
> 




More information about the SunHELP mailing list