-u and -g
Ralf Hildebrandt
Ralf.Hildebrandt at innominate.com
Tue Jan 30 19:04:30 UTC 2001
On Tue, Jan 30, 2001 at 12:52:15PM -0600, Daniel Wittenberg wrote:
>
> From what I've read the only way to specify a user/group to run as is with
> the command-line options -u and -g, and thus can't use ndc anymore? If this
Not true. All parameters unknown to ndc are passed on. Here's what I use for
starting my chrooted BIND:
---- snip -----
#!/bin/sh
PATH=/usr/sbin:/usr/bin:/sbin
export PATH
exec ndc -c /var/spool/named/var/run/ndc ${1+"$@"} -t /var/spool/named/ -u named -g named
---- snip -----
The cool thing is, that way I can even use:
/sbin/init.d/named reload
/sbin/init.d/named reconfigure
etc.
More information about the bind-users
mailing list