Problems Chrooting under Bind 9
Cricket Liu
cricket at menandmice.com
Sat Nov 2 22:45:15 UTC 2002
Bill Smith wrote:
> I'm trying to start up named using
>
> named -u named -g named -t /usr/local/etc. That results in the
> message below
>
> # /usr/local/sbin/named -u named -g named -t /usr/local/etc
> usage: named [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
> [-p port] [-s] [-t chrootdir] [-u username]
> named: extra command line arguments
As the usage line suggests, the -g option doesn't take an option argument.
Back in BIND 8, -g specified the group name. Now the name server
changes group to the primary group of the user specified with -u.
> I then try starting it w/out the -g flag and the following error is
> log to messages on my system
>
> Nov 2 17:20:59 bind9 named[498]: [ID 866145 daemon.notice] starting
> BIND
> 9.2.1
> -u named -t /usr/local/etc
> Nov 2 17:20:59 bind9 named[498]: [ID 866145 daemon.error] none:0:
> open: /usr/lo
> cal/etc/named.conf: file not found
>
> The questions I have is why doesn't the -g work in the first example.
> How come named won't start when I just use -u and -t flags.
> /usr/local/etc is where all config, etc files are located so not sure
> why it's complaining there.
Are you sure you have a named.conf file in /usr/local/etc/named.conf?
Did you recompile named to expect named.conf in /usr/local/etc/named.conf?
If you did, and you're also using -t, it's looking in
/usr/local/etc/usr/local/etc/named.conf.
cricket
Men & Mice
DNS Software, Training and Consulting
www.menandmice.com
The DNS and BIND Cookbook, available now!
http://www.oreilly.com/catalog/dnsbindckbk/
More information about the bind-users
mailing list