Page 1 of 1

db permission denied

Posted: Sat Mar 19, 2022 3:05 am
by arktex54
I have went all the way to 777 and still getting permission denied errors. /etc/bind/* files are the same as another myvesta install except the domain names... this has been an ongoing issue for months but finally caught up to me haha I restarted DNS using 'v-restart-dns' and also 'systemctl restart bind9'

Code: Select all

Mar 11 12:32:12 pi named[32248]: zone pi.ex4.com/IN: loading from master file /home/pi3/conf/dns/pi.ex5.com.db failed: permission denied
Mar 11 12:32:12 pi named[32248]: zone pi.ex4.com/IN: not loaded due to errors.
Mar 11 12:32:12 pi named[32248]: zone ex2.com/IN: loading from master file /home/dns-cluster/conf/dns/ex4.com.db failed: permission denied
Mar 11 12:32:12 pi named[32248]: zone ex2.com/IN: not loaded due to errors.
Mar 11 12:32:12 pi named[32248]: zone ex3.org/IN: loading from master file /home/dns-cluster/conf/dns/ex3.org.db failed: permission denied
Mar 11 12:32:12 pi named[32248]: zone ex3.org/IN: not loaded due to errors.
Mar 11 12:32:12 pi named[32248]: zone do.ex1.com/IN: loading from master file /home/dns-cluster/conf/dns/do.ex1.com.db failed: permission denied
Mar 11 12:32:12 pi named[32248]: zone do.ex1.com/IN: not loaded due to errors.

Re: db permission denied

Posted: Fri Mar 25, 2022 4:34 am
by arktex54
answer: https://forum.hestiacp.com/t/bind9-zone ... u=arktex54

Code: Select all

nano /etc/apparmor.d/usr.sbin.named
find

Code: Select all

/etc/bind/** rw,
and add below that:

Code: Select all

/home/** rwm,
save...

Code: Select all

service apparmor restart

Re: db permission denied

Posted: Sun Sep 03, 2023 8:04 am
by nickm
I had the same issue concerning my website, could not even read my db after creating a backup, now working. Thanks!