Score:0

Bind9 failed: permission denied for Debian 11.1

br flag

After installed bind9 for Debian 11.1 and preconfigured I have this information after restart bind:

example.local/IN: loading from master file /var/named/example.local.zone failed: permission denied

When I move file example.local.zone to /etc/bind9 and after change file location in named.conf.local then everything is OK.

Of course my permission for /var/named is OK and user/group: root:bind. Even if I give full permission then is the same error. Where is problem ?

vidarlo avatar
ar flag
Why do you want to load `example.local.zone`? As suggested by filename it's an example.
br flag
I think that newer version bind9 does not allow to create zones outside /etc/bind directory.
djdomi avatar
za flag
wrongly. i use the latest version and use /var/named
djdomi avatar
za flag
please show `ls -la /var |grep named` and `ls -la /var/named`
Score:0
es flag
dom

When this happened to me, it was because apparmor was active, and doesn't allow access to paths which aren't alllowlisted. You can probably see the profile at /etc/apparmor.d/usr.sbin.named to confirm. I'd suggest either moving your files to /etc/bind or /var/lib/bind, or update the apparmor profile to include /var/named.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.