The Network Time Protocol daemon (ntpd) program is a Linux operating system daemon. It sets and maintains the system time of day in synchronism with time servers (Mills).
You need to configure ntpd via /etc/ntp.conf configuration file. The file is well documented and you easily configure it.
Install ntpd
If ntpd is not installed use any one of the following command to install ntpd:
# yum install ntpOR# up2date ntp
Configuration
You should at least set following parameter in /etc/ntp.conf config file:
server <Time Server Name or IP Address>
For example, open /etc/ntp.conf file using vi text editor:
# vi /etc/ntp.conf
Locate server parameter and set it as follows:
server pool.ntp.org
Save the file and restart the ntpd service:
# /etc/init.d/ntpd start
You can synchronize the system clock to an NTP server immediately with following command:
# ntpdate pool.ntp.org
Output:
5 May 14:36:01 ntpdate[5257]: adjust time server 61.206.115.3 offset -0.343242 sec
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins

- My 10 UNIX Command Line Mistakes
- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
Facebook it - Tweet it - Print it -
We're here to help you make the most of sysadmin work. So, subscribe!

{ 9 comments… read them below or add one }
Time is not updated through asia.pool.ntp.org. Any other server that can be configured in /etc/ntpd.conf. Please suggest
Goto -> http://www.pool.ntp.org/ and select the server you want :)
Iam unable to syn two systems time between redhat 7 and redhat enterprise 4.
Is there any please reply.
Works perfect! GNOME wouldn’t update the time itself, so I came here. Thanks, buddy!
its good but tell me how i sync the client with my ntp server
Hi ,
I am getting message as NTP socket in use , exiting … I am getting this message after I started the ntp service .
Do you know what it is ? any solution ?
—
Gururaj
I had the same problem with Gururaj, until I found out that I need to stop the NTP service first.
/etc/init.d/ntpd stop
Then only ntpdate pool.ntp.org will work.
Why is this so when the instruction says to “Save the file and restart the ntpd service” then
“You can synchronize the system clock to an NTP server immediately with following command:” ?
The instructions doesn’t work in that order.
us.pool.ntp.org
Use ntp1.funet.fi or ntp2.funet.fi
They work nicely :)