From owner-freebsd-questions Sun Mar 25 17:42:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mh-2.MX.saturated.NET (asylum.lojik.NET [208.51.149.8]) by hub.freebsd.org (Postfix) with ESMTP id 2380037B718 for ; Sun, 25 Mar 2001 17:42:54 -0800 (PST) (envelope-from jim@mahood.com) Received: from localhost (jim@localhost) by mh-2.MX.saturated.NET (8.9.3/8.9.3/zuGzuG) with ESMTP id UAA49249; Sun, 25 Mar 2001 20:42:50 -0500 (EST) (envelope-from jim@mahood.com) Date: Sun, 25 Mar 2001 20:42:50 -0500 (EST) From: Jim Mahood X-Sender: jim@fizgig.srvc.saturated.net To: Dima Dorfman Cc: Kris Kennaway , freebsd-questions@FreeBSD.ORG Subject: Re: can't unlink kernel In-Reply-To: <20010326010148.E87963E09@bazooka.unixfreak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 25 Mar 2001, Dima Dorfman wrote: +Kris Kennaway writes: +> On Sun, Mar 25, 2001 at 07:49:42PM -0500, Jim Mahood wrote: +> > I'm trying to install a new kernel, but can't remove the old one. Make +> > buildkernel worked, but make installkernel fails saying that: +> > +> > chflags noschg /kernel +> > and +> > mv /kernel /kernel.OLD +> > +> > both failed. I've tried running the chflags cmd myself, and it does +> > indeed fail. I can't unlink or chmod /kernel. It's locked somehow, but I +> > don't know why.... do you? :-) +> +> You're running at securelevel, aren't you? :) + +To expand on that a little more.. +http://www.freebsd.org/FAQ/admin.html#UNSETTING-SCHG + Yes, a friend set up the box for me, and set securelevel to 1. I'm learning so much new stuff! :-) I just did "shutdown now", then entered what I thought was single-user mode, but I still could not change the flags on the kernel. I'm just setting securelevel to 0 in rc.conf and rebooting... but what's up with that single user mode? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message