From owner-freebsd-questions Tue Jul 10 14: 2:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from malkavian.org (malkavian.org [206.136.132.23]) by hub.freebsd.org (Postfix) with ESMTP id 05E9837B401 for ; Tue, 10 Jul 2001 14:02:12 -0700 (PDT) (envelope-from rbw@myplace.org) Received: (from rbw@localhost) by malkavian.org (8.11.3/8.11.1) id f6AL24E84439; Tue, 10 Jul 2001 17:02:05 -0400 (EDT) (envelope-from rbw@myplace.org) Date: Tue, 10 Jul 2001 14:02:04 -0700 From: "brian j. peterson" To: Isaac Hopkins Cc: freebsd-questions@FreeBSD.org Subject: Re: syslogd logfile turnover and permissions Message-ID: <20010710140204.O84474@malkavian.org> Mail-Followup-To: Isaac Hopkins , freebsd-questions@FreeBSD.org References: <20010710135410.N84474@malkavian.org> <3B4B6BD2.67A640C3@state.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B4B6BD2.67A640C3@state.net>; from isaac@state.net on Tue, Jul 10, 2001 at 03:55:46PM -0500 X-URL: http://rbw.myplace.org/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG thanks, Isaac! problem solved. i'm CCing this to the list so no one else has make a fool of themselves like i just did. =P -brian On Tue, Jul 10, 2001 at 03:55:46PM -0500, Isaac Hopkins wrote: > I am going to guess that syslogd is not rolling the log files. I would bet that > /etc/newsyslog .conf is. If you look in newsyslog.conf you will see how to set > the permissions. > > -Isaac Hopkins > > "brian j. peterson" wrote: > > > when syslogd turns over /var/log/messages (e.g. "Jun 15 13:00:00 monkey > > newsyslog[63011]: logfile turned over"), both the newly created > > /var/log/messages and the /var/log/messages.0.gz files have their per- > > missions set to 0755. > > > > on a system i help admin, we are using a third-party application to log > > some system statistics with syslogd. the local7.* selector is used in > > /etc/syslog.conf to direct the output from the aforementioned application > > into a separate file. the problem i am running into is that syslogd > > seems to insist on setting the permissions for that file to 0700. i can > > manually change it to 0750 (which is what i would like it to be), but the > > file is put back to 0700 when syslogd turns the file over. > > > > is there some way to control what permissions syslogd sets on the files > > it creates? are the permissions on new files dictated by the permissions > > on the existing file at the time syslogd was run? > > > > any help or suggestions would be appreciated. > > > > thanks, > > brian > > > > -- > > --===-----=======-----------=============-----------------=================== > > | rbw aka bjp | god's final message to his creation: | > > | rbw@myplace.org | we apologize for the inconvenience. | > > ===================-----------------=============-----------=======-----===-- > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message -- --===-----=======-----------=============-----------------=================== | rbw aka bjp | god's final message to his creation: | | rbw@myplace.org | we apologize for the inconvenience. | ===================-----------------=============-----------=======-----===-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message