Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
How do I use ntpd ???
Can I set something up in cron to sync time from a free public time server ???
Is that ok or is there any security issues there ??? If not and that's the way to go, then how do I do it !!!!
If you setup a full blown NTP server then you don't need to run anything at regular intervals as the NTP daemon takes care of all that for you, alternatively if you don't want to run a server all the time you can regularly (say using cron) get ntpdate to sync with a name server. This isn't as accurate as running an NTP server but if its only to keep the clock accurate from a human point of view is more than sufficient. I use the ntpdate method at home sucessfully...
As for security issues I don't believe there are that many for NTP, I know that they recently closed a couple with the last release so I think things are pretty good.
Thanks.
I tried ntpdate and it worked great. I went a head and setup the cron to execute once a day also a startup script incase of server reboot.
I am using this public time server 128.118.46.3. I used it as
#ntpdate 128.118.46.3
I got this back
28 Aug 17:11:55 ntpdate[27367]: step time server 128.118.46.3 offset 75.395817 sec
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.