From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 14:14:58 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 3DF8716A4CE for ; Wed, 9 Mar 2005 14:14:58 +0000 (GMT) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB55C43D5F for ; Wed, 9 Mar 2005 14:14:57 +0000 (GMT) (envelope-from david.fleck@mchsi.com) Received: from grond (12-216-7-29.client.mchsi.com[12.216.7.29]) by sccmmhc92.asp.att.net (sccmmhc92) with SMTP id <20050309141455m92003a21he>; Wed, 9 Mar 2005 14:14:55 +0000 Date: Wed, 9 Mar 2005 08:14:54 -0600 (CST) From: David Fleck Sender: dcf@grond.sourballs.org To: Richard Mcintyre In-Reply-To: <422E47CD.4020407@thecompanyonline.com> Message-ID: <20050309080617.M98716@grond.sourballs.org> References: <422E2590.9050605@thecompanyonline.com> <20050309003940.GA45954@osiris.chen.org.nz> <422E47CD.4020407@thecompanyonline.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: FreeBSD Questions 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 14:14:58 -0000 On Tue, 8 Mar 2005, Richard Mcintyre wrote: > 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. That seems strange, because the file name format doesn't look anything like what newsyslog normally does. This is what log files look like on my 5.3-RELEASE-p5 system: $ ls -lrt /var/log [snip...] -rw-r----- 1 root wheel 728 Mar 5 03:06 sendmail.st.0 -rw------- 1 root wheel 5959 Mar 5 17:00 cron.1.bz2 -rw-r----- 1 root wheel 778 Mar 6 00:00 maillog.3.bz2 -rw-r--r-- 1 root wheel 30735 Mar 6 00:00 daemon.3.bz2 -rw-r--r-- 1 root wheel 34760 Mar 6 00:00 all.log.3.bz2 -rw-r--r-- 1 root wheel 49601 Mar 7 00:00 all.log.2.bz2 -rw-r----- 1 root wheel 645 Mar 7 00:00 maillog.2.bz2 -rw-r--r-- 1 root wheel 46138 Mar 7 00:00 daemon.2.bz2 -rw-r--r-- 1 root wheel 16217 Mar 7 19:45 console.log -rw-r--r-- 1 root wheel 72179 Mar 7 19:45 messages -rw------- 1 root wheel 13227 Mar 7 19:45 auth.log -rw-r----- 1 root wheel 642 Mar 8 00:00 maillog.1.bz2 -rw-r--r-- 1 root wheel 31980 Mar 8 00:00 daemon.1.bz2 -rw-r--r-- 1 root wheel 35479 Mar 8 00:00 all.log.1.bz2 -rw------- 1 root wheel 5453 Mar 8 10:00 cron.0.bz2 -rw-r--r-- 1 root wheel 36777 Mar 9 00:00 daemon.0.bz2 -rw-r--r-- 1 root wheel 41041 Mar 9 00:00 all.log.0.bz2 -rw-r----- 1 root wheel 644 Mar 9 00:00 maillog.0.bz2 -rw-r----- 1 root wheel 728 Mar 9 03:06 sendmail.st -rw-r----- 1 root wheel 2124 Mar 9 03:06 maillog -rw------- 1 root wheel 34519 Mar 9 08:05 cron -rw-r--r-- 1 root wheel 167201 Mar 9 08:06 all.log *something's* messing with your log files. That they're all the same size is pretty odd too. Look around in /var/log/messages or /var/log/cron and see if anything looks related. -- David Fleck david.fleck@mchsi.com