From owner-freebsd-questions Wed Dec 5 22:58:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hermes.pressenter.com (hermes.pressenter.com [209.224.20.19]) by hub.freebsd.org (Postfix) with ESMTP id 756C437B41A for ; Wed, 5 Dec 2001 22:58:28 -0800 (PST) Received: from [209.224.35.86] (helo=daggar) by hermes.pressenter.com with smtp (Exim 3.16 #1) id 16BsUA-0006Qr-00; Thu, 06 Dec 2001 00:58:23 -0600 From: "Stephen Hilton" To: "FreeBSD Questions" Cc: "Jonas Fornander" Subject: RE: Can't mv my custom kernel Date: Thu, 6 Dec 2001 00:58:54 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <00f101c17e21$08648330$0800a8c0@master> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal 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 Jonas Fornander wrote on Thursday, December 06, 2001 12:41 AM > I built my own kernel but want to boot up again with kernel.old. However > I get a permission denied error > when I try to: > #mv kernel.old kernel The kernel file has the schg flag set, to see this: cd / ls -lao | more man chflags Do you have kern_securelevel_enable="YES" in your /etc/rc.conf, if so change it to kern_securelevel_enable="NO" and reboot, then cd / ; chflags noschg kernel ; mv kernel.old kernel ; chflags schg kernel Then edit your /etc/rc.conf and turn securelevel back on. If you only want to boot the kernel.old file once in a while rename it to kernel.XXX and at the boot loader hit space bar, then at the ok prompt use: unload boot kernel.XXX Regards, Stephen Hilton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message