Start Fails - Permission denied

Bug #472472 reported by buliwyf
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bind9 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bind9

Hello,

after the upgrade from jaunty to karmic bind9 won't start.

user@host:~$ sudo /etc/init.d/bind9 start
 * Starting domain name service... bind9
   ...fail!

A manual start brings the following error:

user@host:~$ sudo named -c /etc/bind/named.conf -f
Auto configuration failed
139957459711760:error:0200100D:system library:fopen:Permission denied:bss_file.c:122:fopen('/usr/lib/ssl/openssl.cnf','rb')
139957459711760:error:2006D002:BIO routines:BIO_new_file:system lib:bss_file.c:127:
139957459711760:error:0E078002:configuration file routines:DEF_LOAD:system lib:conf_def.c:199:

user@host:~$ sudo -u bind named -c /etc/bind/named.conf -f
Auto configuration failed
140005081753360:error:0200100D:system library:fopen:Permission denied:bss_file.c:122:fopen('/usr/lib/ssl/openssl.cnf','rb')
140005081753360:error:2006D002:BIO routines:BIO_new_file:system lib:bss_file.c:127:
140005081753360:error:0E078002:configuration file routines:DEF_LOAD:system lib:conf_def.c:199:

so lets check the File Permission:
user@host:~$ sudo ls -la /usr/lib/ssl/openssl.cnf
lrwxrwxrwx 1 root root 20 2009-11-03 10:39 /usr/lib/ssl/openssl.cnf -> /etc/ssl/openssl.cnf

user@host:~$ sudo ls -la /etc/ssl/openssl.cnf
-rw-r--r-- 1 root root 9374 2008-07-25 20:26 /etc/ssl/openssl.cnf

Now an strace output:
munmap(0x7f284b0fc000, 135168) = 0
open("/usr/lib/ssl/openssl.cnf", O_RDONLY) = -1 EACCES (Permission denied)
write(2, "Auto configuration failed\n", 26Auto configuration failed
) = 26

It seems bind can't read the file, but the file permissions are ok.
/ is mount rw too:
user@host:~$ sudo mount
/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro,usrquota,grpquota)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.