ntpd_initres: ntpd returns a permission denied error

I recently came across a server that was throwing this error into its message log:

ntpd_initres[2619]: ntpd returns a permission denied error!

It would only appear about every five minutes on the server, and restarting ntpd didn't correct the issue. I stopped ntpd entirely, but the error still appeared a few minutes later.

After examining the running processes, I found that there was a lonely ntpd process that was running using a non-standard method. I killed that process, started the default instance of ntpd using the init scripts, and the issue went away.

It turns out that ntpd daemon that was started manually was unable to access some of the required paths and sockets that is necessary for ntpd to run properly. These configuration items are set up in the init scripts, but they're not included when ntpd is running manually.

This was tested on Red Hat Enterprise Linux 4.

Printed from: http://rackerhacker.com/2008/02/20/ntpd_initres-ntpd-returns-a-permission-denied-error/ .
© Major Hayden 2012.

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this