Skip site navigation (1)Skip section navigation (2)
Date:      25 Nov 2000 10:03:19 -0500
From:      Lowell Gilbert <lowell@be-well.ilk.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: ntpdate and date fail to change clock by more than 1 second...
Message-ID:  <44n1eoqeko.fsf@lowellg.ne.mediaone.net>
In-Reply-To: "news.cncdsl.com"'s message of "24 Nov 2000 21:04:46 GMT"
References:  <8vml5e$moe@dispatch.concentric.net>

next in thread | previous in thread | raw e-mail | index | archive | help
"news.cncdsl.com" <me@mine.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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44n1eoqeko.fsf>