From owner-freebsd-questions@FreeBSD.ORG Mon May 26 18:02:56 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6024106566B for ; Mon, 26 May 2008 18:02:56 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id B61248FC1A for ; Mon, 26 May 2008 18:02:56 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 63EED5D17; Mon, 26 May 2008 14:02:56 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C+uBy2tOl-bx; Mon, 26 May 2008 14:02:53 -0400 (EDT) Received: from [10.152.145.134] (72-165-115-225.dia.static.qwest.net [72.165.115.225]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTPSA id 592555CB7; Mon, 26 May 2008 14:02:53 -0400 (EDT) Message-Id: From: Chuck Swiger To: Jim Stapleton In-Reply-To: <80f4f2b20805261002x3a875b36s88dc1ea4b38bca87@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Mon, 26 May 2008 11:02:52 -0700 References: <80f4f2b20805261002x3a875b36s88dc1ea4b38bca87@mail.gmail.com> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-questions@freebsd.org Subject: Re: ntpd - I'm sure I'm setting it up wrong, but I can't figure out how. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2008 18:02:57 -0000 On May 26, 2008, at 10:02 AM, Jim Stapleton wrote: > I'm trying to run ntpd to auto-update my computer's time (since I'm > not supposed to use ntpdate). > > /etc/ntp.conf (I've tried without the restrict line): > ======================================== > server sushi.lyon.edu > restrict default ignore > driftfile /var/db/ntp.drift > ======================================== Your configuration is blocking all NTP traffic and commands, even from localhost. See: http://support.ntp.org/bin/view/Support/AccessRestrictions#Section_6.5.1.2.1 . You also want to configure at least 4 timeservers if you want to get reliable "falseticker" detection; see: http://www.pool.ntp.org/use.html > I have tried this command (with and without the -g), with no success. > If I don't have an /etc/ntp.conf, it complains, and it stops > complaining when I put /etc/ntp.conf back where it belongs: > $ sudo /usr/sbin/ntpd -q -g -f /var/db/ntpd.drift -l /var/log/ > ntpd.log The system knows how to do this: echo 'ntpd_enable="YES"' >> /etc/rc.conf /etc/rc.d/ntpd start # or restart, perhaps -- -Chuck