by pbharris

(Transferred from the wiki by Peter)

This was posted by Otheos at and he kindly gave me permision to reprint it here

The first thing you need to do is make sure the package rdate is installed, there are packages for both debain and redhat based systems.

Next you need a time server that has accurate time. is a good one

Then you need one box to get the time from this server:
rdate -s
Then you need your other boxes to read the time from your local server:
rdate -s myserver where myserver is the Linux machine you just set the time to.
or you can set each box to do it directly from outside. You can do it once in boot time, or make a cron job for it in the root users crontab. To do this type as user root crontab -e in a terminal and then enter
0 * * * * /usr/bin/rdate -s
This will sync the computer at the start of every hour.
Finally if you run samba on your local server you can have your windows boxes setting their time from it by adding:
time server = Yes
under the [global] in your smb.conf and then from your windows boxes (w2k, sorry this is what I know/use) do from the cli:
net time \\myserver /set /yes
You can make a shortcut to it and add it in your startup.
Now all your boxes have the same time