From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E0fT9-00069V-5F for garchives@archives.gentoo.org; Thu, 04 Aug 2005 13:09:07 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j74D7Yl9031442; Thu, 4 Aug 2005 13:07:34 GMT Received: from smtp106.mail.sc5.yahoo.com (smtp106.mail.sc5.yahoo.com [66.163.169.226]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j74D3t5i017750 for ; Thu, 4 Aug 2005 13:03:56 GMT Received: (qmail 77272 invoked from network); 4 Aug 2005 13:04:36 -0000 Received: from unknown (HELO ?192.168.0.4?) (richard?j?fish@68.230.66.148 with plain) by smtp106.mail.sc5.yahoo.com with SMTP; 4 Aug 2005 13:04:36 -0000 Message-ID: <42F21008.5060305@asmallpond.org> Date: Thu, 04 Aug 2005 14:54:32 +0200 From: Richard Fish User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050723) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] logrotate References: <200508031154.57143.uwix@iway.na> <200508031311.24650.shrdlu@unlimitedmail.org> <200508031510.06784.uwix@iway.na> In-Reply-To: <200508031510.06784.uwix@iway.na> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: b35f5dd5-0ddf-4b0e-b3c9-6309af006c34 X-Archives-Hash: 184c644dc76e0039b775e5853df87305 Uwe Thiem wrote: >On 03 August 2005 12:11, Etaoin Shrdlu wrote: > > >>On Wednesday 03 August 2005 12:54, Uwe Thiem wrote: >> >> >>>Hi folks, >>> >>>from /etc/logrotate.conf: >>> >>>----- >>># no packages own lastlog or wtmp -- we'll rotate them here >>>/var/log/wtmp { >>> monthly >>> create 0664 root utmp >>> rotate 1 >>>} >>>----- >>> >>>It states it rotates lastlog (/var/log/lastlog) but it doesn't and my >>>lastlog grows forever. Doesn't seem right. Anybody else seeing the >>>same or have I messed up? >>> >>> >>Probably missing something (I don't use logrotate), but seems to me that >>the above fragment only deals with /var/log/wtmp. To >>have /var/log/lastlog rotated, add another section for it. >> >> > >Are you sure you aren't using it? Have you looked into /etc/cron.daily? > > > Why is lastlog growing forever??? Doesn't that only track the most recent logins by userid? It seems to me that file should only grow if you add users. And Etaoin is correct, that block only rotates /var/log/wtmp. The comment is misleading/wrong. -Richard -- gentoo-user@gentoo.org mailing list