[Samba] open: /var/lib/samba/private/named.conf: permission denied

Davor Vusir davortvusir at gmail.com
Mon Aug 4 22:04:47 MDT 2014


** Skickat från mobilusken! **
Den 5 aug 2014 00:59 skrev "Carlos Ibrahim Arias" <carlos at braimtec.com>:
>
> Hi Davor,
>
> Thanks for your help. I did as you recommended but the problem persists…
same problem…
>
> Jul 30 17:36:32 braimone named[1607]: loading configuration from
'/etc/named.conf'
> Jul 30 17:36:32 braimone named[1607]: using default UDP/IPv4 port range:
[1024, 65535]
> Jul 30 17:36:32 braimone named[1607]: using default UDP/IPv6 port range:
[1024, 65535]
> Jul 30 17:36:32 braimone named[1607]: listening on IPv4 interface lo,
127.0.0.1#53
> Jul 30 17:36:32 braimone named[1607]: listening on IPv4 interface eth1,
192.168.2.1#53
> Jul 30 17:36:32 braimone named[1607]: generating session key for dynamic
DNS
> Jul 30 17:36:32 braimone named[1607]: sizing zone task pool based on 5
zones
> Jul 30 17:36:32 braimone named[1607]: Loading 'in.example.com.zone' using
driver dlopen
> Jul 30 17:36:33 braimone named[1607]: samba_dlz: Failed to connect to
/var/lib/samba/private/dns/sam.ldb
> Jul 30 17:36:33 braimone named[1607]: dlz_dlopen of 'in.example.com'
failed
> Jul 30 17:36:33 braimone named[1607]: SDLZ driver failed to load.
> Jul 30 17:36:33 braimone named[1607]: DLZ driver failed to load.
> Jul 30 17:36:33 braimone named[1607]: loading configuration: failure
> Jul 30 17:36:33 braimone named[1607]: exiting (due to fatal error)
>
> It seems that Bind cannot connect to sam.ldb. I'm using the centos
bind-9.8.2-0.23.rc1.el6_5.1.x86_64 package. Is it any known compatibility
problem?
>
> I'm stuck and don't know what else can I do.
>
> Thanks in advanced
>
Turn off SE for the moment and check the permissions one more time.

Regards
Davor

> El 30/07/2014, a las 14:19, Davor Vusir <davortvusir at gmail.com> escribió:
>
>>
>> Den 30 jul 2014 02:07 skrev "Carlos Ibrahim Arias" <carlos at braimtec.com>:
>> >
>> > Hello everyone,
>> >
>> > I’m deploying samba on a CenOS Server following the guide  'Samba AD
DC How To' at wiki.samba.org. Everything has gone right till I got to the
section 'Configuring Bind as Samba Active Directory backend’.
>> >
>> > Firstly Bind could not access '/var/lib/samba/private/named.conf’ when
adding the option 'include "/var/lib/samba/private/named.conf”;’ to
/etc/named.conf. I got the error message of the subject.
>> >
>> > I “solved” this adding the content to the named.conf file at
/etc/named.conf but it did not work neither. I got the following message:
>> >
>> > Jul 30 00:33:27 braimone named[2299]: loading configuration from
'/etc/named.conf'
>> > Jul 30 00:33:27 braimone named[2299]: using default UDP/IPv4 port
range: [1024, 65535]
>> > Jul 30 00:33:27 braimone named[2299]: using default UDP/IPv6 port
range: [1024, 65535]
>> > Jul 30 00:33:27 braimone named[2299]: listening on IPv4 interface lo,
127.0.0.1#53
>> > Jul 30 00:33:27 braimone named[2299]: listening on IPv4 interface
eth1, 192.168.2.1#53
>> > Jul 30 00:33:27 braimone named[2299]: generating session key for
dynamic DNS
>> > Jul 30 00:33:27 braimone named[2299]: sizing zone task pool based on 5
zones
>> > Jul 30 00:33:27 braimone named[2299]: Loading 'AD DNS Zone' using
driver dlopen
>>
>> Replace 'AD DNS Zone' with your DNS domain in Sambas private/named.conf.
And restart bind.
>>
>> Regards
>> Davor
>>
>> > Jul 30 00:33:29 braimone named[2299]: samba_dlz: Failed to connect to
/var/lib/samba/private/dns/sam.ldb
>> > Jul 30 00:33:29 braimone named[2299]: dlz_dlopen of 'AD DNS Zone'
failed
>> > Jul 30 00:33:29 braimone named[2299]: SDLZ driver failed to load.
>> > Jul 30 00:33:29 braimone named[2299]: DLZ driver failed to load.
>> > Jul 30 00:33:29 braimone named[2299]: loading configuration: failure
>> > Jul 30 00:33:29 braimone named[2299]: exiting (due to fatal error)
>> >
>> > SElinux is set to enforced but I’m not getting any error, the
permissions are properly set and I don’t know what else I can do.
>> >
>> > Can anyone help?
>> >
>> > Thanks in advanced!
>> > --
>> > To unsubscribe from this list go to the following URL and read the
>> > instructions:  https://lists.samba.org/mailman/options/samba
>
>


More information about the samba mailing list