starting bind as a non-root user with ndc
Ralf Hildebrandt
R.Hildebrandt at tu-bs.de
Wed Apr 26 11:15:34 UTC 2000
On Tue, Apr 25, 2000 at 06:31:22PM +1000, Jeremy Lunn wrote:
> On Mon, Apr 24, 2000 at 07:07:30PM +0200, Ralf Hildebrandt wrote:
> > exec ndc -c /var/spool/named/var/run/ndc ${1+"$@"} -t /var/spool/named/ -u named -g named
> >
>
> I don't understand what that ${1+"$@"} does, but ndc doesn't seem to
> work if I just run it with the args -u and -g.
Then your permissions on the working dir etc. are wrong
The above line is for the startup script; normally you'd say:
% ndc start -u named -g named
adding -t /var/spool/named/ makes BIND chroot() to /var/spool/named/, thus
making -c /var/spool/named/var/run/ndc necessary for ndc to communicate with
the chrooted BIND.
More information about the bind-users
mailing list