From owner-freebsd-questions Sat Nov 25 17:40: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from static.unixfreak.org (static.unixfreak.org [63.198.170.139]) by hub.freebsd.org (Postfix) with ESMTP id 2E60837B4C5 for ; Sat, 25 Nov 2000 17:40:07 -0800 (PST) Received: by static.unixfreak.org (Postfix, from userid 1000) id 5D6461F30; Sat, 25 Nov 2000 17:40:06 -0800 (PST) Subject: Re: can't chflags/mv current kernel In-Reply-To: <20001126013052.3261.qmail@hyperreal.org> "from mike@hyperreal.org at Nov 25, 2000 05:30:52 pm" To: mike@hyperreal.org Date: Sat, 25 Nov 2000 17:40:06 -0800 (PST) Cc: freebsd-questions@freebsd.org From: Dima Dorfman Reply-To: dima@unixfreak.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20001126014006.5D6461F30@static.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > # make install > 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 > *** Error code 1 > > What is this a symptom of? securelevel >= 1. See init(8) for details. > > It's not covered in the Handbook and I have never had it happen before. > The default kernel was removed just fine. Doesn't matter if I'm in > single-user mode or not; the kernel is untouchable. How did you get to single user mode? Did you get there by booting the kernel with the -s flag, or by using shutdown? In case of the former, it should work. In case of the latter, you should try the former. For the sake of the archives, setting kern_securelevel to -1 in /etc/rc.conf should also work if you can't get to single user mode (no console access). Just remember to change it back when you're done. Hope this helps -- Dima Dorfman Finger dima@unixfreak.org for my public PGP key. If only God would give me some clear sign! Like making a large deposit in my name at a Swiss bank. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message