How to Fix “/etc/rndc.key: permission denied” for named Service Error

by ehowstuff on February 6, 2012

Symptoms :

I keep getting this error every time I try to start the named daemon service :

    [root@centos62 ~]# service named start
    Starting named:                                            [FAILED]
    

Then i checked at the /var/log/messages, i get the following messages :

    [root@centos62 ~]# tail -f /var/log/messages
    
    Feb  6 21:51:22 centos62 named[1341]: loading configuration from '/etc/named.conf'
    Feb  6 21:51:22 centos62 named[1341]: /etc/named.conf:7: open: /etc/rndc.key: permission denied
    Feb  6 21:51:22 centos62 named[1341]: loading configuration: permission denied
    Feb  6 21:51:22 centos62 named[1341]: exiting (due to fatal error)
    

Solutions :
Change the owner and the files permission of the ‘/etc/named.conf’ :

    [root@centos62 ~]# chown named:named /etc/rndc.key
    [root@centos62 ~]# chmod 644 /etc/rndc.key
    

Start named services :

    [root@centos62 ~]# service named start
    Starting named:                                            [  OK  ]
    

Technology Updates, Blogging Tips and How To Guides
Lyrics Collection, Upcoming and Released Albums and Movie Trailers
My Highly Recommended
Watch TV Online, Online TV Channels, Free TV Streaming, Free Internet TV
Professional WordPress Themes and Blogspot Templates Resources
Submit URL for Free, Search Engine Submission, Free URL Submission, Submit URL to Search Engine

Related Posts

Previous post:

Next post: