Setting up ntpd

A quick way to setup ntpd to set the system and hardware clock

On a Redhat system (Redhat, CentOS, Fedora or Oracle Linux) edit the /etc/sysconfig/ntpd file:

  • Change:




  • Add:

-x to OPTIONS so that the clock will be set every time ntpd is started

OPTIONS=”-u ntp:ntp -p /var/run/ -x”

Now make sure that ntpd is running

/sbin/chkconfig –level 2345 ntpd on

/sbin/service ntpd start

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>