Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Whenever I try to run the named service, I get the following even though my permissions and folder ownership are all fine:

[root@f13 ~]# service named start
Starting named:
Error in named configuration:
zone localhost/IN: loading from master file /var/lib/named/localhost.zone failed: permission denied
zone localhost/IN: not loaded due to errors.
_default/localhost/IN: permission denied
zone 235.168.192.in-addr.arpa/IN: loading from master file /var/lib/named/mydb-for-192-168-235 failed: permission denied
zone 235.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/235.168.192.in-addr.arpa/IN: permission denied
zone example.org/IN: loading from master file /var/lib/named/mydb-for-example-dot-org failed: permission denied
zone example.org/IN: not loaded due to errors.
_default/example.org/IN: permission denied
                                                           [FAILED]
[root@f13 ~]# ls -lh /var/lib/named/
total 12K
-rwxrwxrwx. 1 named named 191 May 27 09:13 localhost.zone
-rwxrwxrwx. 1 named named 277 May 27 09:15 mydb-for-192-168-235
-rwxrwxrwx. 1 named named 269 May 27 09:14 mydb-for-example-dot-org
share|improve this question

closed as off-topic by garethTheRed, slm Dec 9 at 12:57

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – garethTheRed, slm
If this question can be reworded to fit the rules in the help center, please edit the question.

1  
can we see the permissions on all the directories, starting with /, then /var, then /var/lib, and finally /var/lib/named? Let's make sure they all are searchable by the user named. –  Steve Kehlet May 27 '11 at 19:28
    
What does testparm say about your file? –  user7849 May 27 '11 at 20:41
2  
Is selinux turned on, and did you create those files/directories by hand and not set the context? –  Wes Hardaker May 28 '11 at 4:37
1  
Voting to close as there is not enough information to answer. –  Stéphane Gimenez Feb 15 '12 at 19:08
    
It says clearly that your zone file is broken... –  vonbrand Feb 3 '13 at 23:18

1 Answer 1

f13? So I guess it's Fedora 13 (Goddard). That could be a SELinux problem.

Try restore the SELinux flags on /var/lib/named/localhost.zone, that is,

chcon system_u:object_r:named_conf_t /var/lib/named/*

Also show the output of ls -Zlh /var/lib/named.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.