From owner-freebsd-questions Fri Oct 22 17:59:16 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cm-24-142-61-16.cableco-op.ispchannel.com (cm-24-142-61-16.cableco-op.ispchannel.com [24.142.61.16]) by hub.freebsd.org (Postfix) with ESMTP id C440014FD3 for ; Fri, 22 Oct 1999 17:59:12 -0700 (PDT) (envelope-from jwg@netbox.com) Received: from localhost (jwg@localhost) by cm-24-142-61-16.cableco-op.ispchannel.com (8.8.8/8.8.8) with ESMTP id RAA23220; Fri, 22 Oct 1999 17:52:57 -0700 (PDT) (envelope-from jwg@netbox.com) X-Authentication-Warning: cm-24-142-61-16.cableco-op.ispchannel.com: jwg owned process doing -bs Date: Fri, 22 Oct 1999 17:52:57 -0700 (PDT) From: Jeff Gray X-Sender: jwg@cm-24-142-61-16.cableco-op.ispchannel.com To: Mark Ovens Cc: Questions at FreeBSD Subject: Re: newbie kernel question- strip problem In-Reply-To: <19991023011835.B588@marder-1> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Is this because of the coversion to ELF? If so, then this rehash is not completely silly. 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 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message