From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,271c3c51c4f7c28f X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-01-13 16:12:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!news.usyd.edu.au!not-for-mail From: Paul Szabo Newsgroups: comp.unix.tru64 Subject: Re: trimming wtmp Date: Tue, 14 Jan 2003 11:12:06 +1100 Organization: School of Mathematics and Statistics, University of Sydney Message-ID: <3E2355D6.794B@maths.usyd.edu.au> References: NNTP-Posting-Host: talus.maths.usyd.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: spacebar.ucc.usyd.edu.au 1042503126 9456 129.78.68.1 (14 Jan 2003 00:12:06 GMT) X-Complaints-To: usenet@news.usyd.edu.au NNTP-Posting-Date: 14 Jan 2003 00:12:06 GMT To: Daniel Berger X-Mailer: Mozilla 3.01Gold (X11; I; OSF1 V5.1 alpha) Xref: archiver1.google.com comp.unix.tru64:9377 Daniel Berger wrote: > Is there a way to trim wtmp? Mine goes back years and has gotten huge. What we do, yearly, is (at a quiet time): cp -ip /usr/adm/wtmp /usr/adm/wtmp.2002 echo -n '' > /usr/adm/wtmp so the system has a nice, small (empty) file to fill up again. -- Paul Szabo - psz@maths.usyd.edu.au http://www.maths.usyd.edu.au:8000/u/psz/ School of Mathematics and Statistics University of Sydney 2006 Australia