db permission denied

Post Reply
arktex54
Posts: 13
Joined: Wed Jul 15, 2020 11:10 pm
db permission denied

Post 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.

arktex54
Posts: 13
Joined: Wed Jul 15, 2020 11:10 pm
Re: db permission denied

Post 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/** r,
and add below that:

Code: Select all

/home/** rwm,
save...

Code: Select all

service apparmor restart


Post Reply