Rate this page del.icio.us  Digg slashdot StumbleUpon

Why do I get “can’t open /etc/ntp/drift.TEMP: Permission denied” entries in /var/log/messages when I use ntpd?

by

Release found: Red Hat Enterprise Linux 3

Resolution:
This error is caused by an incorrectly configured /etc/ntp.conf file. In earlier versions of Red Hat Enterprise Linux, the drift file was located in the /etc/ntp directory, owned by root. As the ntp daemon does not run as root, it cannot create a new drift file. The preferred location for the drift file in the newer releases of Red Hat Enterprise Linux is the /var/lib/ntp directory.

To correct this error, change the line in /etc/ntp.conf that reads:

driftfile /etc/ntp/drift

to:

driftfile /var/lib/ntp/drift

contributed by Andrew Ryan

Red Hat’s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to Red Hat Knowledgebase is free. Every month, Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries.

Comments are closed.