Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 1998 00:41:54 +0200
From:      Vallo Kallaste <vallo@matti.ee>
To:        =?iso-8859-1?Q?P=E5l_Sommerhein?= <paalsom@ifi.uio.no>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Trying to delete /usr/obj, but _she_ won't let me :-(
Message-ID:  <19981118004154.A25702@matti.ee>
In-Reply-To: =?iso-8859-1?Q?=3C3651F392=2EE4B391A2=40ifi=2Euio=2Eno=3E=3B_from_P=E5l_?= =?iso-8859-1?Q?Sommerhein_on_Tue=2C_Nov_17=2C_1998_at_11:07:14PM_%2B0100?=
References:  <3651F392.E4B391A2@ifi.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Pål Sommerhein <paalsom@ifi.uio.no> 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
>       # 
> )

The quickest answer is "man chflags".
You should try chflags -R noschg * /usr/obj and then remove all the 
content you need. Some files have immutable flags set so even root 
can't accidently remove them, whatever.


Vallo Kallaste
vallo@matti.ee

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?19981118004154.A25702>