Agent007 Posted May 31, 2003 Share Posted May 31, 2003 hi all,Sometime back I had mentioned shutting down the NTPD daemon for security reasons and running a cron that will sync the time. Following is the procedure. Btw, u will require r00t access to configure this. CONFIGURATION:-Put loopback address in the /etc/ntp.conf file (if this file does notexist make a new one)Entries in /etc/ntp.confserver 127.0.0.1run the follwing from the promptFirst Sync# ntpdate 137.92.140.80# ntpdate 137.92.140.80Since we want to put the sync in a crontab and not use the NTPD servicewe need to do the following# touch /usr/local/bin/ntpupdate.sh# vi /usr/local/bin/ntpupdate.shAppend the following lines in this file#First Full Syncntpdate 137.92.140.80#Second Full Syncntpdate 193.79.237.14Write and save the fileMake the file executable# chmod +x /usr/local/bin/ntpupdate.shPut Crontab entries to run it in a scheduled fashion# crontab -eappend the following30 9 * * * /usr/local/bin/ntpupdate.shwrite and save the file The above will sync time everyday at 9:30 amwith the above public ntp serversPS:- IP Address 192.79.237.14 and 137.92.140.80 are public NTP servers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.