From owner-freebsd-bugs Tue Oct 17 6:19: 1 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from elvis.mu.org (elvis.mu.org [207.154.226.10]) by hub.freebsd.org (Postfix) with ESMTP id A97EC37B4C5 for ; Tue, 17 Oct 2000 06:18:58 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1061) id 305112B238; Tue, 17 Oct 2000 08:18:58 -0500 (CDT) Date: Tue, 17 Oct 2000 08:18:58 -0500 From: David Drum To: freebsd-bugs@FreeBSD.org Subject: Re: conf/22038: Default location of named.pid file assumes named is running as root Message-ID: <20001017081857.C46425@elvis.mu.org> Mail-Followup-To: David Drum , freebsd-bugs@FreeBSD.org References: <200010170900.CAA96493@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200010170900.CAA96493@freefall.freebsd.org>; from dwmalone@maths.tcd.ie on Tue, Oct 17, 2000 at 02:00:03AM -0700 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Quoth David Malone: > On Mon, Oct 16, 2000 at 09:17:12PM -0700, david@mu.org wrote: > > [Your message containted some very long lines, so I wrapped them] I apologize. I made the minimum number of assumptions about what the web form would do with my submission. > According to the docs you can tell named where to put it's pid file > by adding: > > pid-file "/var/run/named/named.pid"; > > to the "options" section of the config file. Absolutely. In fact I have done that. > Changig the default location of the PID file is a bad idea as it will > break lots of local scripts people have written. Is this option OK > for what you want? I am trying to look at this from the perspective of someone who is completely new to FreeBSD and wants to run named as a non-privileged user. The "-u bind -g bind" options are given in /etc/defaults/rc.conf. This makes it easy for someone without a lot of BIND knowledge to implement, but the location of the pid file results in the aforementioned "ndc reload" error. This in turn requires a greater degree of knowledge about named's defaults and UNIX ownerships to determine the root cause. The default configuration should either change to take this into consideration, or this "feature" should be documented along with the named_flags option. I guess one further change that is implicit in my suggestion is that /var/run/named would be owned by bind out of the box. I apologize if my two responses to the list did not get noted by GNATS. I am a little unclear about how to accomplish that. Regards, David Drum david@mu.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message