samba4 et named chgroot

Andrew Bartlett abartlet at samba.org
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 
> dlz_bind9.so and the necessary lib.
> 
> I had to copy libpopt.so.0 and librt.so.1 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 ld.so: 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                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org



More information about the samba-technical mailing list