From owner-freebsd-questions Tue Jun 25 4: 1:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.ideal.net.au (ion.ideal.net.au [203.20.241.5]) by hub.freebsd.org (Postfix) with ESMTP id 026AE37B400 for ; Tue, 25 Jun 2002 04:01:46 -0700 (PDT) Received: from localhost (peter@localhost) by mail.ideal.net.au (8.9.3/8.9.3) with ESMTP id VAA39459; Tue, 25 Jun 2002 21:01:34 +1000 (EST) (envelope-from peter@ideal.net.au) Date: Tue, 25 Jun 2002 21:01:33 +1000 (EST) From: Peter MacGee To: Larry Rosenman Cc: Aaron Burke , FreeBSD-Questions Subject: RE: Kernel install problems In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Hi All, On Tue, 25 Jun 2002, Peter MacGee wrote: > Hi Larry, > > On 25 Jun 2002, Larry Rosenman wrote: > > > On Tue, 2002-06-25 at 05:40, Peter MacGee wrote: > > > Hi Aaron and Everyone, > > > > > > On Tue, 25 Jun 2002, Aaron Burke wrote: > > > > > > > > -----Original Message----- > > > > > From: owner-freebsd-questions@FreeBSD.ORG > > > > > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Peter MacGee > > > > > Sent: Tuesday, June 25, 2002 02:57 AM > > > > > To: freebsd-questions@FreeBSD.ORG > > > > > Subject: Kernel install problems > > > > > > > > > > > > > > > Hi All, > > > > > I'm currently trying to install a new kernel on my system > > > > > (4.6-STABLE). I have tried both the "new" and the "traditional" > > > > > methods that are prescribed in the handbook, and both times come up > > > > > against the error: > > > > > > > > > > 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 > > > > > > > > > > I have searched archives et al all to no avail. Could anyone please help > > > > > on how to fix this problem? > > > > > > > > Are you running as root while doing these operations? > > > > > > Yes indeed. I have also had this exact same problem on another box of mine > > > running 4.5-RELEASE... Both times I was root whilst trying to perform the > > > operation. > > I'll bet your kern.securelevel is >0. > > You're quite correct, a quick scan of /etc/rc.conf reveals: > > kern_securelevel="2" > kern_securelevel_enable="YES" > > Should I comment these lines out, reboot, make install, re-instate > kern_securelevel lines, reboot and life be dandy? > Just for everyones info, I tried my suggested remedy, and it worked a charm. Not sure if its the correct way, but life is dandy for me! :-) Cheers, Pete. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message