Hi,
by my own mistake I copied some things wrong. Now I can't delete them anymore although I'm doing it as root. How do I get it deleted after all?
find test
test
test/bin
test/bin/rcp
test/sbin
test/sbin/init
test/lib
test/lib/libcrypt.so.5
test/lib/libthr.so.3
test/lib/libc.so.7
rm -rf test/
rm: test/bin/rcp: Operation not permitted
rm: test/bin: Directory not empty
rm: test/sbin/init: Operation not permitted
rm: test/sbin: Directory not empty
rm: test/lib/libcrypt.so.5: Operation not permitted
rm: test/lib/libthr.so.3: Operation not permitted
rm: test/lib/libc.so.7: Operation not permitted
rm: test/lib: Directory not empty
rm: test/: Directory not empty
-r-xr-xr-x 1 root wheel 1006464 Mar 25 2016 test/sbin/init
chmod 777 test/sbin/init
chmod: test/sbin/init: Operation not permitted
by my own mistake I copied some things wrong. Now I can't delete them anymore although I'm doing it as root. How do I get it deleted after all?
find test
test
test/bin
test/bin/rcp
test/sbin
test/sbin/init
test/lib
test/lib/libcrypt.so.5
test/lib/libthr.so.3
test/lib/libc.so.7
rm -rf test/
rm: test/bin/rcp: Operation not permitted
rm: test/bin: Directory not empty
rm: test/sbin/init: Operation not permitted
rm: test/sbin: Directory not empty
rm: test/lib/libcrypt.so.5: Operation not permitted
rm: test/lib/libthr.so.3: Operation not permitted
rm: test/lib/libc.so.7: Operation not permitted
rm: test/lib: Directory not empty
rm: test/: Directory not empty
-r-xr-xr-x 1 root wheel 1006464 Mar 25 2016 test/sbin/init
chmod 777 test/sbin/init
chmod: test/sbin/init: Operation not permitted
Last edited: