From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 00:55:34 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E85A16A4CE for ; Wed, 9 Mar 2005 00:55:34 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9AEB43D2D for ; Wed, 9 Mar 2005 00:55:33 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id j290tJ817964; Tue, 8 Mar 2005 19:55:20 -0500 (EST) From: Jerry McAllister Message-Id: <200503090055.j290tJ817964@clunix.cl.msu.edu> To: rem@thecompanyonline.com (Richard Mcintyre) Date: Tue, 8 Mar 2005 19:55:19 -0500 (EST) In-Reply-To: <422E47CD.4020407@thecompanyonline.com> from "Richard Mcintyre" at Mar 08, 2005 07:48:13 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org cc: Jonathan Chen Subject: Re: Problems with Cron not deleting log files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 00:55:34 -0000 > > Jonathan Chen wrote: > > >On Tue, Mar 08, 2005 at 05:22:08PM -0500, Richard Mcintyre wrote: > > > > > >>All, > >> > >>I am having a problem. Back in December I installed FreeBSD5.3 onto a > >>server and have just recently found some new time to 'play' with the > >>settings etc. > >> > >>I think I know what happened but I'm not sure how to fix it. > >> > >>I currently have a 'large number' of auth.log.xxxxx and cron.xxxxxx > >>files under /var/log. > >> > >> > > > >Use newsyslog(8) and /etc/newsyslog.conf to manage your log files > >instead of your home-grown non-working method. > > > > > Thank you very much for your sarcastic comment, however, you must have > read that far then stopped. The problem is not with the number of extra > log files, the problem is that I cannot delete them. AT ALL. As far as > 'my home-grown non-working method' of managing my log files, it doesn't > exist. In that I had not modified any of the initial settings of > /etc/newsyslog.conf or any other conf files. the only commands I ran on > the system were the long string of chmod commands I listed. The point is that newsyslog will delete them for you. Just get the configuration right. There is no need to use any other cron job for this and that would probably be more difficult to get right. If you are having trouble manually deleting the log files, I don't have the original post info to get an idea of what is going on. ////jerry > > Thanks again, > ~REM > _______________________________________________