Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2001 18:03:35 -0500 (CDT)
From:      mcbrune <mcbrune@home.com>
To:        Derek True <sigmafour@hotmail.com>
Cc:        freebsd-newbies@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG
Subject:   Re: Recompiling Kernel 4.2
Message-ID:  <200109242303.f8ON3Zh06172@home.com>
In-Reply-To: <F1395rNBIVlNOAmw8qm000092fd@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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