[PLUG] can't recompile my FreeBSD kernel
Vidyut Samanta (a.k.a vids)
vids@purdue.edu
Sun, 8 Apr 2001 02:49:15 -0400 (EDT)
I tried to change the securelevel:
sysctl -w kern.securelevel=0 in single-user mode
but it says 'Operation not permitted'. Currently its set to 2.
Any-way to set it back to 0?
-vids
On Sun, 8 Apr 2001, Will Andrews wrote:
> On Sun, Apr 08, 2001 at 02:07:54AM -0400, Vidyut Samanta (a.k.a vids) wrote:
> > chflags noschg /kernel
> > chflags: /kernel: Operation not permitted
> > *** Error code 1 (ignored)
> > mv /kernel /kernel.old
> > mv: rename /kernel to /kernel.old: Operation not permitted
> >
> > so I tried cp kernel to kernel.old and rm kernel but that didn't work
> > either. Any idea why, or what I should do to fix this.
>
> Do this:
>
> sysctl kern.securelevel
>
> If this number is greater than 0, you can't change the immutable or
> append-only flags on any file. See init(8) manpage for more information.
>
> The only way to solve this problem is to boot to single-user mode,
> install the kernel, then reboot again. (While you're in single-user
> mode you might want to consider turning off the securelevel feature,
> because it's not really useful for anything besides a server.)
>
> --
> wca
>
---
"Always try to do things in chronological order; it's less confusing
that way."
---fortune(6)