From owner-freebsd-stable Sun Nov 2 02:16:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA13757 for stable-outgoing; Sun, 2 Nov 1997 02:16:30 -0800 (PST) (envelope-from owner-freebsd-stable) Received: from home.shvetc.marka.net.ua (home.shvetc.marka.net.ua [193.193.219.185]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA13750 for ; Sun, 2 Nov 1997 02:16:21 -0800 (PST) (envelope-from eugene@shvetc.marka.net.ua) Received: from eugene.shvetc.marka.net.ua (eugene.shvetc.marka.net.ua [193.193.219.187]) by home.shvetc.marka.net.ua (8.8.7/8.8.7) with SMTP id MAA15364; Sun, 2 Nov 1997 12:15:14 +0200 (EET) From: "Eugene Shvetc" To: "Morgan Davis" Cc: Subject: Re: unremovable library files Date: Sun, 2 Nov 1997 12:15:12 +0200 Message-ID: <01bce778$34d50a00$bbdbc1c1@eugene.shvetc.marka.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Sender: owner-freebsd-stable@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I've successfully cvsupped 2.2.5-RELEASE sources, made world, rebooted >several times, and all is quite dandy. However, my drive where I keep >/usr/src and /usr/obj is at 95%. To free some space, I wanted to >remove all the stuff in the obj directory. An rm -r did the trick, >except it refuses to remove the following files and directories in >/usr/obj/tmp: > >total 3 >drwxr-xr-x 2 bin bin 2048 Nov 2 00:41 lib/ >drwxr-xr-x 2 bin bin 512 Nov 2 00:41 libexec/ > >./lib: >total 486 >-r--r--r-- 1 bin bin 451474 Oct 25 03:06 libc.so.3.0 >-r--r--r-- 1 bin bin 12583 Oct 25 02:03 libcipher.so.2.0 >-r--r--r-- 1 bin bin 16698 Oct 25 03:06 libdescrypt.so.2.0 > >./libexec: >total 68 >-r-xr-xr-x 1 bin bin 69632 Oct 25 00:35 ld.so* > > >I get "operation not permitted" errors (yes, I'm root). I'm not sure >I understand why libraries that were built in /usr/obj/tmp and >installed into their rightful locations refuse to be deleted even >after rebooting. Further, ldconfig doesn't include /usr/obj/tmp/lib >or /usr/obj/tmp/libexec at boot time. So I'm baffled. > >What's up with this? > >--Morgan > Try ls -lo. There files have schg flag. You can remove it using chflags -R noschg /usr/obj/tmp