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

Share this Article :

Symptoms :

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

    [[email protected] ~]# service named start
    Starting named:                                            [FAILED]
    

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

    [[email protected] ~]# 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’ :

    [[email protected] ~]# chown named:named /etc/rndc.key
    [[email protected] ~]# chmod 644 /etc/rndc.key
    

Start named services :

    [[email protected] ~]# service named start
    Starting named:                                            [  OK  ]
    

One Response

  1. Nurlan

Leave a Reply