*BSD News Article 84414


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!super.zippo.com!zdc!szdc!szdc-e!news
From: "John S. Dyson" <dyson@freebsd.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Unable to rename kernel
Date: Sat, 07 Dec 1996 00:27:24 -0500
Organization: John S. Dyson's home machine
Lines: 30
Message-ID: <32A9003C.41C67EA6@freebsd.org>
References: <589otu$o5g@umbc7.umbc.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 3.0-CURRENT i386)

Paul Danckaert wrote:
> 
> Greetings,
> 
> I have run into an interesting problem on one of my FreeBSD 2.1.5 boxes.
> For some reason, the kernel has permissions:
> 
> -r-xr-xr-x  1 root  wheel  881526 Nov 11 14:33 /kernel
> 
> I am unable to chmod it, chown it, or mv it to any other name.  I tried
> booting off of the new kernel I want to use, and then doing it, without
> success. I even tried booting the fixit floppy and doing it within there
> with no luck.  This is fairly odd.. any ideas on how I can get this kernel
> out of the way?
> 
Try ls -ltao, and you'll probably notice the schg flag is set.  That is
a "secret" :-) parallel set of flags that we have for files.  That flag
is meant to be used to keep files from being messed with during
multi-user
mode, even by root.

To mess-with /kernel, you can try to do the following:

chflags noschg /kernel

Then you'll notice that ls -ltao will show that the flag is now missing.
You can then "do things" to the kernel :-).

John
dyson@freebsd.org