{"id":609,"date":"2014-02-19T13:00:04","date_gmt":"2014-02-19T18:00:04","guid":{"rendered":"http:\/\/sites.williams.edu\/lj1\/?p=609"},"modified":"2014-02-19T13:12:30","modified_gmt":"2014-02-19T18:12:30","slug":"mac-set-ntp-time-server-from-command-line","status":"publish","type":"post","link":"https:\/\/sites.williams.edu\/lj1\/labs\/mac-set-ntp-time-server-from-command-line\/","title":{"rendered":"Mac &#8211; Set NTP time server from command line"},"content":{"rendered":"<p>Active Directory login, Keyserver access, SafeConnect, etc all require the connecting client to have a time setting that is within 5 minutes or so of the server&#8217;s time setting.\u00a0 It is therefore useful to use a &#8220;network time protocol&#8221; server to set your local computer&#8217;s time to the &#8220;correct&#8221; time.<\/p>\n<p>Macs typically use &#8220;time.apple.com&#8221; to set their time from the network.\u00a0 This is fine most of the time. \ud83d\ude09<\/p>\n<p>In the rare times you want to set a different time server on a Mac, use Terminal and enter the command:<\/p>\n<pre>sudo <code>systemsetup -setnetworktimeserver &lt;timeserver&gt;\r\n<\/code>(replace <code>&lt;timeserver&gt; with the address of the time server \r\nyou want to use as in 137.165.4.21 for Williams College)\r\n<\/code><\/pre>\n<p>Since this is a command run with &#8220;sudo&#8221;, you&#8217;ll be asked to enter the account password and that account needs to be authorized as a &#8220;Super User&#8221; or &#8220;root&#8221; user.<\/p>\n<p>By the way &#8211; the GUI interface in the &#8220;Date &amp; Time&#8221; System preference only allows you to choose time servers hosted by Apple.<\/p>\n<p>For more details see the web page at:<\/p>\n<p><a href=\"http:\/\/hints.macworld.com\/comment.php?mode=view&amp;cid=98039\">http:\/\/hints.macworld.com\/comment.php?mode=view&amp;cid=98039<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Active Directory login, Keyserver access, SafeConnect, etc all require the connecting client to have a time setting that is within 5 minutes or so of the server&#8217;s time setting.\u00a0 It is therefore useful to use a &#8220;network time protocol&#8221; server &hellip; <a class=\"more-link\" href=\"https:\/\/sites.williams.edu\/lj1\/labs\/mac-set-ntp-time-server-from-command-line\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10086],"tags":[10104,29493,10090,29495],"class_list":["post-609","post","type-post","status-publish","format-standard","hentry","category-labs","tag-active_directory","tag-command","tag-mac","tag-time"],"acf":[],"_links":{"self":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/comments?post=609"}],"version-history":[{"count":3,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/609\/revisions"}],"predecessor-version":[{"id":611,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/609\/revisions\/611"}],"wp:attachment":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/media?parent=609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/categories?post=609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/tags?post=609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}