Re: cannot delete libc.so.7 from build directories

From: Brooks Davis <brooks_at_freebsd.org>
Date: Mon, 11 Aug 2008 18:08:43 -0500
On Mon, Aug 11, 2008 at 07:04:53PM -0400, Rohit Tripathi wrote:
> I tried this from runlevel 1 as root and still can't seem to get rid of these
> 
> rm: obj.old/usr/src/lib32/usr/lib32/libc.so.7: Operation not permitted
> rm: obj.old/usr/src/lib32/usr/lib32/libcrypt.so.4: Operation not permitted
> rm: obj.old/usr/src/lib32/usr/lib32/libthr.so.3: Operation not permitted
> rm: obj.old/usr/src/lib32/usr/lib32/libkse.so.3: Operation not permitted
> rm: obj.old/usr/src/lib32/usr/lib32/librt.so.1: Operation not permitted
> rm: obj.old/usr/src/lib32/usr/lib32: Directory not empty
> rm: obj.old/usr/src/lib32/usr: Directory not empty
> rm: obj.old/usr/src/lib32: Directory not empty
> rm: obj.old/usr/src: Directory not empty
> rm: obj.old/usr: Directory not empty
> rm: obj.old: Directory not empty
> rm: obj.old2/usr/src/lib32/usr/lib32/libc.so.7: Operation not permitted
> rm: obj.old2/usr/src/lib32/usr/lib32/libcrypt.so.4: Operation not permitted
> rm: obj.old2/usr/src/lib32/usr/lib32/libthr.so.3: Operation not permitted
> rm: obj.old2/usr/src/lib32/usr/lib32/libkse.so.3: Operation not permitted
> rm: obj.old2/usr/src/lib32/usr/lib32/librt.so.1: Operation not permitted
> rm: obj.old2/usr/src/lib32/usr/lib32: Directory not empty
> rm: obj.old2/usr/src/lib32/usr: Directory not empty
> rm: obj.old2/usr/src/lib32: Directory not empty
> rm: obj.old2/usr/src: Directory not empty
> rm: obj.old2/usr: Directory not empty
> rm: obj.old2: Directory not empty

Certain critical files are marked with the schg flag to prevent accidental
deletion.  You can remove them by running:

chflags -R noschge obj.old obj.old2
rm -rf obj.old obj.old2

-- Brooks

Received on Mon Aug 11 2008 - 21:08:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:33 UTC