From owner-freebsd-questions@FreeBSD.ORG Mon Mar 30 06:08:09 2009 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6DE31065670 for ; Mon, 30 Mar 2009 06:08:09 +0000 (UTC) (envelope-from 240olofsson@telia.com) Received: from pne-smtpout2-sn2.hy.skanova.net (pne-smtpout2-sn2.hy.skanova.net [81.228.8.164]) by mx1.freebsd.org (Postfix) with ESMTP id 77F028FC12 for ; Mon, 30 Mar 2009 06:08:09 +0000 (UTC) (envelope-from 240olofsson@telia.com) Received: from [192.168.1.31] (90.227.65.237) by pne-smtpout2-sn2.hy.skanova.net (7.3.129) (authenticated as u43111868) id 4873CA9503F12D24; Mon, 30 Mar 2009 08:08:08 +0200 Message-ID: <49D061C6.6060104@telia.com> Date: Mon, 30 Mar 2009 08:08:06 +0200 From: Roger Olofsson <240olofsson@telia.com> User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Garance A Drosehn References: <49CFDEA2.2080606@telia.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: User Questions Subject: Re: Newsyslog mode on /var/log/security? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raggen@raggens.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2009 06:08:10 -0000 Garance A Drosehn skrev: > At 10:48 PM +0200 3/29/09, Roger Olofsson wrote: >> Dear mailing list, >> >> I seem to have forgotten something about /var/log/security and >> newsyslog.conf. I get wrong mode after the trim. >> >> Excerpt from /etc/newsyslog.conf: >> /var/log/security 644 7 5000 * JC > > > Are you sure that's the only line you have for /var/log/security in > your /etc/newsyslog.conf file? The distributed config file has: > > /var/log/security 600 10 100 * JC > > Obviously you have a different entry from that, but did you remove > the original entry? > >> Output from newsyslog -vn: >> chmod 600 /var/log/security.0.bz2 >> >> Why is the mode not 644? >> >> /etc/rc.d/syslogd restart and newsyslog restart have been performed. > > I tried changing the permissions-field in my newsyslog.conf from 600 > to 644, and newsyslog worked correctly for me. > Hi Garance, You are correct! I missed the original line. Silly me :^D Thank you very much! /R