From owner-freebsd-stable Sat Nov 25 7: 3:23 2000 Delivered-To: freebsd-stable@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.184.128]) by hub.freebsd.org (Postfix) with ESMTP id D690B37B479 for ; Sat, 25 Nov 2000 07:03:20 -0800 (PST) Received: (from lowell@localhost) by be-well.ilk.org (8.11.1/8.11.1) id eAPF3K204405; Sat, 25 Nov 2000 10:03:20 -0500 (EST) (envelope-from lowell) To: freebsd-stable@freebsd.org Subject: Re: ntpdate and date fail to change clock by more than 1 second... References: <8vml5e$moe@dispatch.concentric.net> From: Lowell Gilbert Date: 25 Nov 2000 10:03:19 -0500 In-Reply-To: "news.cncdsl.com"'s message of "24 Nov 2000 21:04:46 GMT" Message-ID: <44n1eoqeko.fsf@lowellg.ne.mediaone.net> Lines: 31 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "news.cncdsl.com" writes: > I have a fresh cvsup, make world and kernel from 4.2-S. > > Whenever I try to change the date using 'ntpdate' or even 'date' it doesn't > change my clock although the output seems ok: > > mls2:~ -12:56:45- # ntpdate tick.cs.unlv.edu > 23 Nov 12:56:48 ntpdate[6352]: step time server 131.216.16.9 > offset -6859.012166 sec > > At the same time, /var/log/messages shows the following line: > > Time adjustment clamped to -1 second > > The only think new I've noticed while booting since this box was installed > is: > > Raising kernel security level > kern.securelevel: -1 -> 2 > > Are these related? How do I fix this? Yes, they are related. In elevated securelevels, you are not allowed to change the system clock (reasons left as exercise for the reader). Change your rc.conf to not elevate your securelevel, or reboot every time you want to adjust your clock (and do the adjustment at startup; if you enable the automatic boot-time ntpdate (ntpdate_enable), this should occur *before* the securelevel is raised. Good luck. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message