Maybe I should try to run chroot bind with symlink from samba.
But before that...
I'll need to get the chroot bind workning in advance...
BRB
On Fri, Dec 27, 2013 at 9:44 PM, Rowland Penny
<
rowlan...@googlemail.com>wrote:
> wrote:
> >
> > On 27/12/13 03:11, Chan Min Wai wrote:
> >>
> >> You cannot run bind in a chroot environment with samba4 and bind 9.9,
> >> No, it is written in the docs that it is not possible
> >>
https://wiki.samba.org/index.php/Dns-backend_bind
> >>
> >> can you find the samba zone files ?
> >> Sorry I don't get you.
> >>
> >>
> >
> > What I was trying to point out is that you are worrying about nothing,
> if you use the bind9 dlz backend, you will not find the zone files anywhere
> on disk, they are created in memory every time bind is started.
> >
> > Rowland
>
> Correct me if i am wrong, but are you sure about that? What are the hard
> linked files under private/dns then? They are hard linked to
> private/sam.ldb.d IIRC.
>
> Ricky
>
> >
> >>
> >> On Fri, Dec 27, 2013 at 3:51 AM, Rowland Penny <
>
rowlan...@googlemail.com <mailto:
rowlan...@googlemail.com>> wrote:
> >>
> >> On 26/12/13 18:48, Chan Min Wai wrote:
> >>>
> >>> Thank for the info.
> >>>
> >>> I think it would bigger problem..
> >>> If bind is running in a chroot environment...
> >>
> >> You cannot run bind in a chroot environment with samba4 and bind
> >> 9.9, can you find the samba zone files ?
> >>
> >> Rowland
> >>
> >>
> >>>
> >>> Provided that bind would have no access to any of the files under
> >>> /var/lib/samba
> >>>
> >>>
> >>>
> >>>
> >>> On Fri, Dec 27, 2013 at 2:32 AM, Steve <
st...@steve-ss.com
> >>> <mailto:
st...@steve-ss.com>> wrote:
> >>>
> >>> I think there is confusion because bind doesn't run as root.
> >>> The op has correctly identified the files and directories
> >>> within private that bind needs access to. It now only
> >>> remains to allow the bind user into private. As the op has
> >>> it, only root has access. My argument as to 0755 on private
> >>> are based upon a default source build and make install. I
> >>> notice that the op has a non default location and so may need
> >>> other security measures as we'll. The fact remains that if
> >>> you are using bind, then the user running it must have access
> >>> to private.
> >>> Sorry about the top post. Android limitations.
> >>> Steve
> >>>
> >>>
> >>> Rowland Penny <
rowlan...@googlemail.com
> >>> <mailto:
rowlan...@googlemail.com>> wrote:
> >>>
> >>> >On 26/12/13 15:43, Chan Min Wai wrote:
> >>> >> Dear Steve,
> >>> >>
> >>> >> I think that is bad idea as /var/lib/samba/private was
> >>> suppose to hold
> >>> >> something private for samba.
> >>> >
> >>> >Do you mean like the samba DNS zones and the keytab that is
> >>> required to
> >>> >alter it?
> >>> >
> >>> >> Like secret information security related LDAP/AD information
> >>> >>
> >>> >> Putting dns information don't seem to be a good idea.
> >>> >> (unless the dns information are part or LDAP or AD)
> >>> >
> >>> >The samba dns zones are part of AD.
> >>> >
> >>> >>
> >>> >> And I do believes that it should be place to
> >>> /var/lib/samba/bind or some
> >>> >> other place which private for both of them.
> >>> >>
> >>> >
> >>> >Just where would you put private info like the samba DNS
> >>> zones etc.?
> >>> >
> >>> >If you have any problems about where to store stuff, I
> >>> suggest that you
> >>> >take it up with the Samba devs.
> >>> >
> >>> >Rowland
> >>> >
> >>> >> On Wed, Dec 25, 2013 at 9:17 PM, steve <
st...@steve-ss.com