Date: Tue, 17 Nov 1998 14:25:48 -0800 From: "Michael J. Ruhl" <mruhl@cisco.com> To: =?iso-8859-1?Q?P=E5l?= Sommerhein <paalsom@ifi.uio.no> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Trying to delete /usr/obj, but _she_ won't let me :-( Message-ID: <3651F7EC.D55B6330@cisco.com> References: <3651F392.E4B391A2@ifi.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3651F7EC.D55B6330>
