From owner-freebsd-newbies Mon Apr 2 2:51:18 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id CD03C37B71A for ; Mon, 2 Apr 2001 02:51:15 -0700 (PDT) (envelope-from michaelnottebrock@gmx.net) Received: (qmail 2831 invoked by uid 0); 2 Apr 2001 09:51:14 -0000 Received: from pd4b9efae.dip.t-dialin.net (HELO lofizwei) (212.185.239.174) by mail.gmx.net (mail06) with SMTP; 2 Apr 2001 09:51:14 -0000 Message-ID: <002401c0bb5a$959b2f40$0508a8c0@lofi.dyndns.org> From: "Michael Nottebrock" To: , References: Subject: Re: chflags Date: Mon, 2 Apr 2001 11:52:08 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ----- Original Message ----- From: > [...] > I just compiling my kernel and got this error while > doint make install: > > server# 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 > > Stop in /usr/src/sys/compile/SERVER. > > > Any idea, why this is happens? > I've check and find that my kern.securelevel is 1 > > [...] You need to (temporarily) set the securelevel to -1. Edit /etc/rc.conf, and change the line kern_securelevel="1" to 'kern_securelevel="-1", then reboot. After updating the kernel, change the setting back to 1, then reboot again. Greetings, Michael Nottebrock P.S.: Although this question is in the FAQ - http://www.freebsd.org/FAQ/admin.html#UNSETTING-SCHG and http://www.freebsd.org/FAQ/admin.html#SECURELEVEL, someone should really bother to get this issue into the handbook, preferably into the kernelconfig section. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message