From owner-freebsd-questions@FreeBSD.ORG Thu May 18 00:13:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EFBD16A8DA for ; Thu, 18 May 2006 00:13:18 +0000 (UTC) (envelope-from matze@matzsoft.de) Received: from ds80-237-203-117.dedicated.hosteurope.de (ds80-237-203-117.dedicated.hosteurope.de [80.237.203.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FC7543DB0 for ; Thu, 18 May 2006 00:13:16 +0000 (GMT) (envelope-from matze@matzsoft.de) Received: (qmail 65720 invoked from network); 18 May 2006 00:09:21 -0000 Received: from unknown (HELO ?192.168.0.4?) (matze@mausland-entertainment.com@85.182.77.199) by 0 with AES256-SHA encrypted SMTP; 18 May 2006 00:09:21 -0000 Message-ID: <446BBCC4.3030200@matzsoft.de> Date: Thu, 18 May 2006 02:16:04 +0200 From: Mathias Menzel-Nielsen User-Agent: Thunderbird 1.5 (X11/20060304) MIME-Version: 1.0 To: freebsd questions References: <446BB484.10900@matzsoft.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: cant delete file as root? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2006 00:13:18 -0000 Pietro Cerutti wrote: > On 5/18/06, Mathias Menzel-Nielsen 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 > > Wow. immutable flags. cool! :) chflags noschg /lib/libpthread.so.2 does the trick... thanks a lot!