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 is 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
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
show 1 more comment

1 Answer

f13? So I guess it's fedora 13, that could be a selinux problem.

Try restore the selinux flags on /var/lib/named/localhost.zone, i.e

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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