Skip site navigation (1)Skip section navigation (2)
Date:      14 Jul 2002 10:18:27 -0700
From:      Steve Wingate <steve@velosystems.net>
To:        Steve Wingate <steve@velosystems.net>
Cc:        Lars Wittebrood <lars@socruel.nu>, sroberts@dsl.pipex.com, FreeBSD-Questions Mailinglist <questions@freebsd.org>
Subject:   RE: Cannot start bind in samdbox?
Message-ID:  <1026667113.77988.13.camel@daemon.velosystems.net>
In-Reply-To: <1026666556.77988.7.camel@daemon.velosystems.net>
References:  <2578F22C7A5515449899AF290E2D48321F69@lotus.ad.socruel.org>  <1026666556.77988.7.camel@daemon.velosystems.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2002-07-14 at 10:09, Steve Wingate wrote:
> On Sun, 2002-07-14 at 03:11, Lars Wittebrood wrote:
> > Stacey,
> > 
> > Do you have the directory structure right in your sandbox? I have bind
> > chrooted in /chroot/bind and my command to start it there is :
> > 
> > /chroot/bind/named -u bind -g bind -t /chroot/bind -d 1
> > 
> > You have "-t /etc/namedb/s/" so you have to have the named binary and
> > /etc/namedb/named.conf within the /etc/namedb/s directory structure.
> > 
> > See http://www.psionic.com/papers/bindbsd.html for a HOW-TO.
> > 
> 
> You don't have to move the binary to the chroot. You have to move the
> conf file, which it's telling you in your error message. 
> 
> 
> # /usr/sbin/named -u bind -g bind -t /etc/namedb/s/
> can't open '/etc/namedb/named.conf'
> 
> As soon as the "-t /etc/namedb/s/" is executed, bind switches to that
> directory THEN begins looking for the conf files. It has NO ACCESS to
> anything outside of that directory. The way you're entering that
> command, your named.conf file would have to be in
> /etc/namedb/s/etc/namedb/named.conf. 
> 
> I use the following /etc/rc.conf with BIND 9.x and it works fine. This
> way BIND looks in it's current directory for the conf file, which would
> be '/var/named'. 
> 
> named_enable="YES"                              
> named_program="/usr/local/sbin/named"   
> named_flags="-t /var/named -u bind -c named.conf"   
> 

I should mention I'm running BIND chrooted, not jailed. However the
Handbook instructions on running it in a jail do work perfectly if you
follow them perfectly.




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




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