From owner-freebsd-questions Tue Oct 31 15:22:57 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.tx.home.com (ha1.rdc1.tx.home.com [24.4.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 4794B37B4D7 for ; Tue, 31 Oct 2000 15:22:54 -0800 (PST) Received: from home.com ([24.8.250.184]) by mail.rdc1.tx.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20001031232254.IGQN4470.mail.rdc1.tx.home.com@home.com>; Tue, 31 Oct 2000 15:22:54 -0800 Message-ID: <39FF52AC.855D8E70@home.com> Date: Tue, 31 Oct 2000 17:15:56 -0600 From: leoric@home.com X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Chive , freebsd-questions@freebsd.org Subject: Re: Errors when buidling kernel part 2 References: <39FF27CD.43D56479@home.com> <20001101000311.A10476@blacktrap.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG When it tries to do the chflags command in the kernel installation I get the error: 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/obj/usr/src/sys/SIREN. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Chive wrote: > On Tue, Oct 31, 2000 at 02:13:02PM -0600, leoric@home.com wrote: > > Hmm... It seems that my /kernel file is set to -r-xr-xr-x > > > > Is there any way to rm, mv, or chmod the file when it is like this. If > > root doesnt have write access to the file then how can get my new kernel > > installed? > > > > > > You can't remove the kernel with rm because it has the immutable flag set (see > chflags(1)). You can remove this flag with `chflags noschg', but doing `make > install' when building the kernel will take care of this (and of resetting > this flag on the newly installed kernel). > > -- > Chive. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message