Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 2000 08:18:58 -0500
From:      David Drum <david@mu.org>
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>
In-Reply-To: <200010170900.CAA96493@freefall.freebsd.org>; from dwmalone@maths.tcd.ie on Tue, Oct 17, 2000 at 02:00:03AM -0700
References:  <200010170900.CAA96493@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001017081857.C46425>