From owner-freebsd-questions Fri Oct 22 18: 5:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from monsoon.mail.pipex.net (monsoon.mail.pipex.net [158.43.128.69]) by hub.freebsd.org (Postfix) with SMTP id B2C6914BE5 for ; Fri, 22 Oct 1999 18:05:12 -0700 (PDT) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 10874 invoked from network); 23 Oct 1999 01:05:10 -0000 Received: from userae10.uk.uudial.com (HELO marder-1.) (62.188.131.152) by smtp.dial.pipex.com with SMTP; 23 Oct 1999 01:05:10 -0000 Received: (from mark@localhost) by marder-1. (8.9.3/8.8.8) id CAA03686; Sat, 23 Oct 1999 02:05:14 +0100 (BST) (envelope-from mark) Date: Sat, 23 Oct 1999 02:05:13 +0100 From: Mark Ovens To: Jeff Gray Cc: Questions at FreeBSD Subject: Re: newbie kernel question- strip problem Message-ID: <19991023020511.I588@marder-1> References: <19991023011835.B588@marder-1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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