Master file permission denied

Daniel Armando Rodriguez drodriguez at unau.edu.ar
Wed Jun 28 20:07:14 UTC 2023


El 2023-06-28 16:00, Anand Buddhdev escribió:
> 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

Yeah, I've messed up with the those bits.

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

Have you ever tried everything when something doesn't work? This was one 
of those cases.





________________________________________________

  Daniel A. Rodriguez
_Informática, Conectividad y Sistemas_
Universidad Nacional del Alto Uruguay
San Vicente - Misiones - Argentina
informatica.unau.edu.ar


More information about the bind-users mailing list