samba4 et named chgroot

Andrew Bartlett abartlet at
Wed May 30 00:12:30 MDT 2012

On Wed, 2012-05-30 at 09:05 +0300, Alexis wrote:
> Hi,
> I'm testing samba4 and ıt does what I was expecting when I start named as 
> root user without chroot.
> My distib is opensuse and I'd like to have samab4 more integrated in it 
> (running chgroot as user named)
> So I mount --bind /usr/local/samba/ in my chroot dir so named could find 
> and the necessary lib.
> I had to copy and from my distrib /lib64 to my 
> change root dir.
> After that named stop complain about missing lib but failed to stsart with :
> Loading 'AD DNS Zone' using driver dlopen
> Inconsistency detected by dl-open.c: 596: _dl_open: Assertion 
> `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!
> As it work without change root I guess I did a mess with the libs but I 
> don't know how to trace that. 

You might be able to make it work, but running named in chroot() simply
isn't supported for Samba4.  

Andrew Bartlett

Andrew Bartlett                      
Authentication Developer, Samba Team 

More information about the samba-technical mailing list