Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Oct 2000 14:28:11 +0300
From:      Odhiambo Washington <wash@iconnect.co.ke>
To:        freebsd-isp@freebsd.org
Subject:   Re: running bind -u bind -g bind
Message-ID:  <20001015142811.C68094@poeza.iconnect.co.ke>
In-Reply-To: <4.3.2.7.0.20001015092357.0290b0a0@wallace.webmatic.de>;  from "Thomas Krause, CI" on Sun, Oct 15, 2000 at 09:54:57AM %2B0200
References:  <4.3.2.7.0.20001015092357.0290b0a0@wallace.webmatic.de>

next in thread | previous in thread | raw e-mail | index | archive | help
* Thomas Krause, CI <freebsd@chef-ingenieur.de> [20001015 10:55]:
=>
=>Hi all,
=>
=>I set up in rc.conf
=>
=>named_enable="YES"
=>named_flags="-u bind -g bind"
=>
=>to run named not as root.
=>
=>root@kraxon:/ # ps axw | grep named
=>23473  ??  Ss     0:00.03 named -u bind -g bind
=>
=>Fine. But when I'm doing a 'named.reload' I get in syslog:
=>
=>Oct 15 09:30:22 kraxon named[82]: reloading nameserver
=>Oct 15 09:30:22 kraxon named[82]: couldn't create pid file '/var/run/named.pid'
=>
=>And after a 'named.restart', named is running as root:
=>
=>root@kraxon:/ # named.restart
=>new pid is 230
=>root@kraxon:/ # ps axw | grep named
=>   230  ??  Ss     0:00.09 /usr/sbin/named
=>
=>in named.conf I have:
=>
=>controls {
=>         unix "/var/run/ndc" perm 0600 owner 53 group 53;
=>};
=>
=>Any Ideas, how to reload the named?
=>I'm using FreeBSD 4.1.1-R

Hi I am running FreeBSD 4.1.1-STABLE and in my rc.conf I have

alouette# uname -msr
FreeBSD 4.1.1-STABLE i386

[snip]
named_enable="YES"
named_flags="-u bind -g bind"
[snip]

And When I restart named I get same message. Checking on /var/run shows
that the pid file is owned by bind.bind ...does that give a clue? I am no
UNIX guru either but I think this could be the clue because all other
files are owned by root.
On another server I do not run named with flags and the files are owned by
root and ndc reload (named.reload) gives no such message.
Maybe we need more reading on the effects of using the named_flags???

And my named is running as bind, not root...

alouette# ps -auxc | grep named
bind      98  0.0  1.1  2176 1776  ??  Is   11:56AM   0:00.02 named


-Wash

--
Odhiambo Washington  Inter-Connect Ltd.,
wash@iconnect.co.ke  5th Flr Furaha Plaza
Tel: 254 11 222604   Nkrumah Rd.,
Fax: 254 11 222636   PO Box 83613 MOMBASA, KENYA.

As a computer, I find your faith in technology amusing. 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




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