From owner-freebsd-questions Tue Jul 10 13:54:14 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 28A9937B401 for ; Tue, 10 Jul 2001 13:54:11 -0700 (PDT) (envelope-from rbw@myplace.org) Received: (from rbw@localhost) by malkavian.org (8.11.3/8.11.1) id f6AKsAB76925 for freebsd-questions@FreeBSD.org; Tue, 10 Jul 2001 16:54:10 -0400 (EDT) (envelope-from rbw@myplace.org) Date: Tue, 10 Jul 2001 13:54:10 -0700 From: "brian j. peterson" To: freebsd-questions@FreeBSD.org Subject: syslogd logfile turnover and permissions Message-ID: <20010710135410.N84474@malkavian.org> Mail-Followup-To: freebsd-questions@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 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