cant delete file as root?

Pietro Cerutti pietro.cerutti at gmail.com
Wed May 17 17:07:44 PDT 2006


On 5/18/06, Mathias Menzel-Nielsen <matze at matzsoft.de> wrote:
> Hi

Hello,

>
> Could someone explain me whats going on here?

Who can say...

>
> 8<--8<
> hyperkobold# rm -f /lib/libpthread.so.2
> rm: /lib/libpthread.so.2: Operation not permitted
>
> hyperkobold# ls -lah /lib/libpthread.so.2
> -r--r--r--  1 root  wheel   159K  1 Mai 23:53 /lib/libpthread.so.2
>
> hyperkobold# chmod u+rw /lib/libpthread.so.2
> chmod: /lib/libpthread.so.2: Operation not permitted
>
> hyperkobold# stat /lib/libpthread.so.2
> 103 1012779 -r--r--r-- 1 root wheel 4050520 162688 "May 18 01:36:33
> 2006" "May  1 23:53:56 2006" "May  1 23:53:56 2006" "May  1 23:53:56
> 2006" 4096 320 0x20000 /lib/libpthread.so.2
> 8<--8<

Try:

# chflags nouchg /lib/libpthread.so.2
# rm /lib/libpthread.so.2

or post the output of
$ ls -lo /lib/libpthread.so.2


-- 
Pietro Cerutti
ICQ: 117293691
PGP: 0x9571F78E

- ASCII Ribbon Campaign -
 against HTML e-mail and
 proprietary attachments
   www.asciiribbon.org


More information about the freebsd-questions mailing list