[ntp:questions] drift file

Jarrar Jaffari (jjaffari) jjaffari at cisco.com
Fri Oct 7 20:38:01 UTC 2005


Hello gang,
 
I am running into real weird problem:
 
here is the line from /etc/ntp.conf
 
# Drift file.  Put this in a directory which the daemon can write to.
driftfile /etc/ntp/drift
 
After I run ntpd (ntpd -n -g -U ntp -N high -p /var/run/ntpd.pid -l
/var/log/active/syslog/ntpd.log)
after some time I see following lines in my log file:
 
 6 Oct 23:31:45 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 00:31:44 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 01:31:44 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 02:31:44 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 03:31:44 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 04:31:44 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 05:31:44 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 06:31:44 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 07:31:44 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 08:31:44 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 09:31:43 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 10:31:43 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 11:31:43 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied
 7 Oct 12:31:43 ntpd[25541]: can't open /etc/ntp/drift.TEMP: Permission
denied

and in my /etc/ntp directory I have no drift file created.
 
I am confused, shouldnt drift file be created ? When is it created ?
What is it used for ?
What happens if the the file is not there ?
 
Jarrar 



More information about the questions mailing list