Master file permission denied
Anand Buddhdev
anandb at ripe.net
Wed Jun 28 19:00:08 UTC 2023
On 28/06/2023 20:44, Daniel Armando Rodriguez via bind-users wrote:
Hi Daniel,
[snip]
> # ls -alh /etc/bind/zonas/
> drw-r-S--- 2 bind bind 4,0K jun 28 14:55 .
> drwxr-sr-x 3 root bind 4,0K jun 28 15:06 ..
> -rwxr-xr-- 1 bind bind 323 ene 16 10:59 133.45.210.170.in-addr.arpa
> -rwxr-xr-- 1 bind bind 394 ene 16 10:58
> 3.3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.2.6.4.4.0.0.0.1.1.0.0.0.8.2.ip6.arpa
> -rwxr-xr-- 1 bind bind 5,4K jun 22 12:40 db.unau.edu.ar
>
> Error messages
>
> zone unau.edu.ar/IN: loading from master file
> /etc/bind/zonas/db.unau.edu.ar failed: permission denied
> zone unau.edu.ar/IN: not loaded due to errors.
>
> Named is running as bind user
>
> I would be grateful for any enlightening ideas.
The directory /etc/bind/zonas is missing the eXecute bits for the owner
and group, and so BIND can't read files in the directory. You can
restore the permissions with:
chmod ug+x /etc/bind/zonas
I'll also note that the zone files in /etc/bind/zonas don't need their
execute bits to be set. It doesn't really do any harm, but it is good
practice to not have execute bits on data files.
Regards,
Anand
More information about the bind-users
mailing list