From owner-freebsd-questions@FreeBSD.ORG Sun Mar 29 23:00:58 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 A40411065672 for ; Sun, 29 Mar 2009 23:00:58 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp8.server.rpi.edu (smtp8.server.rpi.edu [128.113.2.228]) by mx1.freebsd.org (Postfix) with ESMTP id 524B78FC14 for ; Sun, 29 Mar 2009 23:00:58 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp8.server.rpi.edu (8.13.1/8.13.1) with ESMTP id n2TLn2rj026660; Sun, 29 Mar 2009 17:49:03 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <49CFDEA2.2080606@telia.com> References: <49CFDEA2.2080606@telia.com> Date: Sun, 29 Mar 2009 17:49:00 -0400 To: raggen@raggens.net, User Questions From: Garance A Drosehn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Bayes-Prob: 0.0001 (Score 0) X-RPI-SA-Score: 0.10 () [Hold at 20.00] COMBINED_FROM X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.228 Cc: Subject: Re: Newsyslog mode on /var/log/security? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2009 23:00:59 -0000 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. -- Garance Alistair Drosehn = drosehn@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA