From owner-freebsd-questions Tue Nov 17 14:33:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA29620 for freebsd-questions-outgoing; Tue, 17 Nov 1998 14:33:15 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pita.cisco.com (pita.cisco.com [171.71.68.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA29609 for ; Tue, 17 Nov 1998 14:33:07 -0800 (PST) (envelope-from mruhl@cisco.com) Received: from cisco.com (corrupt.cisco.com [171.71.66.10]) by pita.cisco.com (8.8.5-Cisco.2-SunOS.5.5.1.sun4/8.6.5) with ESMTP id OAA06523; Tue, 17 Nov 1998 14:31:59 -0800 (PST) Message-ID: <3651F7EC.D55B6330@cisco.com> Date: Tue, 17 Nov 1998 14:25:48 -0800 From: "Michael J. Ruhl" Organization: Cisco Systems X-Mailer: Mozilla 4.5 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?P=E5l?= Sommerhein CC: freebsd-questions@FreeBSD.ORG Subject: Re: Trying to delete /usr/obj, but _she_ won't let me :-( References: <3651F392.E4B391A2@ifi.uio.no> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id OAA29614 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >From the Make World document (that I just read... :)): As parts of the system are rebuilt they are placed in directories which (by default) go under /usr/obj. The directories shadow those under /usr/src. You can speed up the ``make world'' process, and possibly save yourself some dependency headaches by removing this directory as well. Some files below /usr/obj will have the immutable flag set (see chflags(1) for more information) which must be removed first. # cd /usr/obj # chflags -R noschg * # rm -rf * Mike "Pål Sommerhein" wrote: > > I did > # rm -rf /usr/obj > but I got 'permissioned denied messages' for these three files: > /usr/obj/usr/src/tmp/usr/lib/libc.so.3.1 (size 423034) > /usr/obj/usr/src/tmp/usr/lib/libc_r.so.3.0 (size 468922) > /usr/obj/usr/src/tmp/usr/libexec/ld.so* (size 69632) > (a recursive listing is provided at the end of the mail) > > May I delete these files? And if so, how do I proceed? > > (I have tried: > # cp -Rp libc /tmp > # cd /tmp/lib > # rm libc.so.3.1 > override r--r--r-- bin/bin schg for libc.so.3.1? yes > rm: libc.so.3.1: Operation not permitted > # chmod 700 libc.so.3.1 > chmod: libc.so.3.1: Operation not permitted > # > ) > > Any help appreciated. > Take care, > Pål > > --- The following is a recursive listing of /usr/obj --- > > # ls -alR /usr/obj > total 3 > drwxr-xr-x 3 bin bin 512 17 nov 15:00 ./ > drwxr-xr-x 21 root wheel 512 17 nov 21:35 ../ > drwxr-xr-x 3 root bin 512 17 nov 15:00 usr/ > > /usr/obj/usr: > total 3 > drwxr-xr-x 3 root bin 512 17 nov 15:00 ./ > drwxr-xr-x 3 bin bin 512 17 nov 15:00 ../ > drwxr-xr-x 3 root bin 512 17 nov 21:40 src/ > > /usr/obj/usr/src: > total 3 > drwxr-xr-x 3 root bin 512 17 nov 21:40 ./ > drwxr-xr-x 3 root bin 512 17 nov 15:00 ../ > drwxr-xr-x 3 root wheel 512 17 nov 21:37 tmp/ > > /usr/obj/usr/src/tmp: > total 3 > drwxr-xr-x 3 root wheel 512 17 nov 21:37 ./ > drwxr-xr-x 3 root bin 512 17 nov 21:40 ../ > drwxr-xr-x 4 root wheel 512 17 nov 21:37 usr/ > > /usr/obj/usr/src/tmp/usr: > total 5 > drwxr-xr-x 4 root wheel 512 17 nov 21:37 ./ > drwxr-xr-x 3 root wheel 512 17 nov 21:37 ../ > drwxr-xr-x 2 bin bin 2048 17 nov 21:37 lib/ > drwxr-xr-x 2 bin bin 512 17 nov 21:37 libexec/ > > /usr/obj/usr/src/tmp/usr/lib: > total 899 > drwxr-xr-x 2 bin bin 2048 17 nov 21:37 ./ > drwxr-xr-x 4 root wheel 512 17 nov 21:37 ../ > -r--r--r-- 1 bin bin 423034 17 nov 16:02 libc.so.3.1 > -r--r--r-- 1 bin bin 468922 17 nov 16:02 libc_r.so.3.0 > > /usr/obj/usr/src/tmp/usr/libexec: > total 70 > drwxr-xr-x 2 bin bin 512 17 nov 21:37 ./ > drwxr-xr-x 4 root wheel 512 17 nov 21:37 ../ > -r-xr-xr-x 1 bin bin 69632 17 nov 15:14 ld.so* > # > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- -------------------------------------------------------------- Michael J. Ruhl mruhl@cisco.com Cisco Systems Tall Blond Guy Buckaroo.Banzai@Yoyodyne.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message