Will NTP drift the clock backwards

ntp

Will NTP move the system clock backwards? I'm thinking about creating unique ids which are partially based on the time. If the clock is moving backwards, I'd need to somehow account for that.

Best Answer

ntpd will try to prevent time from moving backwards by slowing down the system clock until everything is in sync. If the system clock is too far ahead, however, ntpd will complain and you'll either need to adjust manually or pass the -g flag to ntpd to allow it to make one (and only one) big adjustment.