Date: Sat, 23 Oct 1999 02:05:13 +0100 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: Jeff Gray <jwg@netbox.com> Cc: Questions at FreeBSD <freebsd-questions@freebsd.org> Subject: Re: newbie kernel question- strip problem Message-ID: <19991023020511.I588@marder-1> In-Reply-To: <Pine.BSF.4.10.9910221740320.28205-100000@cm-24-142-61-16.cableco-op.ispchannel.com> References: <19991023011835.B588@marder-1> <Pine.BSF.4.10.9910221740320.28205-100000@cm-24-142-61-16.cableco-op.ispchannel.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 22, 1999 at 05:52:57PM -0700, Jeff Gray wrote: > Maybe a [silly] rehash, but maybe not. > > The reason I ask is that neither the archives nor the earlier post by > Jason indicated that it was necessary to change permissions to do this > before using strip -g on a kernel. I am trying to understand if I > am solving the correct problem by changing permissions. > Not sure why it's not documented, and yes you are solving the correct problem by changing permissions. > Is this because of the coversion to ELF? If so, then this rehash is not > completely silly. > No, it's always been that way. The immutable flag prevents even root accidently deleting the kernel. > What I intend to do if the change of permissions is the way to look at it. > > chflags noschg /kernel > strip -g --strip-debug kernel > chflags schg /kernel > > shutdown -r now > That's correct. > Thanks to all, > jeff > > > > > /kernel has the immutable flag set: > > > > marder-1# ls -lo kernel > > -r-xr-xr-x 1 root wheel schg 1694816 Oct 17 20:07 kernel > > ^^^^ > > > > use ``chflags noschg /kernel'' to remove it, then strip(1). > > > > Don't forget to reset it after with ``chflags schg /kernel'' > > > > HTH > -- STATE-OF-THE-ART: Any computer you can't afford. OBSOLETE: Any computer you own. ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991023020511.I588>