From owner-freebsd-questions Mon Sep 24 16: 3:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from home.com (c1737881-a.plano1.tx.home.com [65.10.46.29]) by hub.freebsd.org (Postfix) with ESMTP id 35E3437B419; Mon, 24 Sep 2001 16:03:37 -0700 (PDT) Received: (from mcbrune@localhost) by home.com (8.11.6/8.11.4) id f8ON3Zh06172; Mon, 24 Sep 2001 18:03:35 -0500 (CDT) (envelope-from mcbrune) From: mcbrune Message-Id: <200109242303.f8ON3Zh06172@home.com> Subject: Re: Recompiling Kernel 4.2 In-Reply-To: To: Derek True Date: Mon, 24 Sep 2001 18:03:35 -0500 (CDT) Cc: freebsd-newbies@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL92 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You don't need to recompile the kernel to change the time. You will need to edit either /etc/rc.conf or /etc/defaults/rc.conf (which ever has the security setting), and set it to -1. It will look like: kern_securelevel_enable="YES" kern_securelevel="2" Just change 2 or whatever the number is to -1 and reboot. After this, you can change your time with the command 'date' and then change the security setting back to the original setting with the command 'sysctl -w kern.securelevel=#'. Hope this helps, Corey > > Hello all, > > I have a quick question about recompiling my kernel. I'm running FreeBSD 4.2 > with the security setting at high. I now need to change the time on this box > but cannot due to the security settings. My question is twofold. > > 1- Can I change this setting without recompiling my kernel? If so how? > > 2- If not, Can I re-compile my kernel without wrecking all the other > settings and software I have on the box? If so how? > > Thanks for your time > > Tom > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message