Okay... today I came across with some NTP drift file related issue. The error was - "Sep 8 13:39:01 XXXXXX ntpd[4694]: can't open /etc/ntp/drift.TEMP: Permission denied"
It was a easy solution, so thought of sharing this with you all.
This error is caused by an incorrectly configured /etc/ntp.conf file. In earlier versions of RedHat 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
Hope this will help someone.
No comments:
Post a Comment