From owner-freebsd-questions Thu Feb 7 16: 3:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id B45F337B433 for ; Thu, 7 Feb 2002 16:03:15 -0800 (PST) Received: from hades.hell.gr (patr530-a056.otenet.gr [212.205.215.56]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g1803B5t009866; Fri, 8 Feb 2002 02:03:12 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id g18038q22864; Fri, 8 Feb 2002 02:03:08 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Fri, 8 Feb 2002 02:03:07 +0200 (EET) From: Giorgos Keramidas X-X-Sender: charon@hades To: Joseph Koenig Cc: freebsd-questions@freebsd.org Subject: Re: rm /usr/lib/libcrypt.so.2: Operation not permitted In-Reply-To: <3C5EE464.F5E9BC4D@jwebmedia.com> Message-ID: <20020208020102.W22809-100000@hades> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Joseph Koenig wrote: > Why can root not delete a file? I was logged in as root, doing a 'make > world' and got the following error: > > rm: libcrypt.so.2: Operation not permitted > *** Error code 1 > > Stop in /usr/src/lib/libcrypt. > *** Error code 1 ... > How can I get rid of this problem? This is FreeBSD 4.2. Thanks, The file is `schg' (marked as immutable). Use chflags to remove the special flags from all the files that cannot be removed. For instance, before I 'make buildworld', I use: # cd /usr/obj # chflags -R noschg * # /bin/rm -fr * to clean up my /usr/obj tree. -- Giorgos Keramidas . . . . . . . . . keramida@{ceid.upatras.gr,freebsd.org} FreeBSD Documentation Project . . . http://www.freebsd.org/docproj/ FreeBSD: The power to serve . . . . http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message