From owner-freebsd-questions@FreeBSD.ORG Thu May 12 22:27:14 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 307F216A4CE for ; Thu, 12 May 2005 22:27:14 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92C4A43D5D for ; Thu, 12 May 2005 22:27:13 +0000 (GMT) (envelope-from motionsiren@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so708611wra for ; Thu, 12 May 2005 15:27:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=jb0fxW1QUYpaes4XAg9cdxqtLAeSzRfueFxhEjZ08lsW/x6ZxsrwHXPqY7svL15lyStiWddNqYli9h6kO6/9UaegT3VDR8wtbphdzUGO+8PHIp5+lX///v7wohOCRw6w4ltU9xAndebR9vt2iaaH1KWhDo5T0Mxyl9I+PqQRQqw= Received: by 10.54.98.19 with SMTP id v19mr1355864wrb; Thu, 12 May 2005 15:27:12 -0700 (PDT) Received: by 10.54.71.9 with HTTP; Thu, 12 May 2005 15:27:08 -0700 (PDT) Message-ID: <781e2bc005051215274e18ad18@mail.gmail.com> Date: Thu, 12 May 2005 15:27:08 -0700 From: Benjamin Keating To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Setting up ntpd on FreeBSD (5.4) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Benjamin Keating List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 22:27:14 -0000 I'm running a generic install of FreeBSD 5.4 and would like to setup ntpd. ntpdate doesn't do me much good as I rarely reboot, but I took the handbooks suggestion of using it anyway (and I've verified it works)). Anyway, I'm having trouble setting up ntpd and it'd be great if I could get your input on my steps. I'd like for other machines on my network to talk to this one (ntpd server) to get the time rather then define each machine with it's own public ntpd servers. 1). Add ntpd_enable=3D"YES" to /etc/rc.conf 2). Create /etc/ntp.conf and (touch) /etc/ntp/ntp.drift Permissions: /etc/ntp.conf -rw-r--r-- root:wheel /etc/ntp/ntp.drift -rw-r--r-- root:wheel %<----- BEGIN /etc/ntp.conf ----- restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap server clepsydra.dec.com server clock.fmt.he.net server clock.isc.org driftfile /etc/ntp/ntp.drift >%----- END /etc/ntp.conf ----- I rebooted and watched my /var/log/messages and saw: May 12 15:17:08 toki ntpd[349]: Frequency format error in /etc/ntp/ntp.drif= t I did a sockstat -l and you can see ntpd is running (BTW, is there anyway to have it not listen to for IPv6? I only use 4 and I hate seeing that clutter). What am I doing wrong? /etc/ntp/ntp.drift is writeable by root, which ntpd is running as... Im confused. Anyhelp would be greatly appreciated. Thanks - bpk