From owner-freebsd-questions@FreeBSD.ORG Sat May 6 03:10:04 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 868C816A400 for ; Sat, 6 May 2006 03:10:04 +0000 (UTC) (envelope-from jpp@cloudview.com) Received: from skipjack.no-such-agency.net (skipjack.no-such-agency.net [64.142.114.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00A5743D46 for ; Sat, 6 May 2006 03:10:03 +0000 (GMT) (envelope-from jpp@cloudview.com) Received: from skipjack.no-such-agency.net (localhost [127.0.0.1]) by skipjack.no-such-agency.net (Postfix) with ESMTP id A861A34DA1E; Fri, 5 May 2006 20:10:03 -0700 (PDT) Received: from [192.168.2.120] (blackhole.no-such-agency.net [64.142.103.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by skipjack.no-such-agency.net (Postfix) with ESMTP id 5E23C34DA1D; Fri, 5 May 2006 20:10:01 -0700 (PDT) Message-ID: <445C1386.5090900@cloudview.com> Date: Fri, 05 May 2006 20:09:58 -0700 From: John Pettitt User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Kris Kennaway References: <445C0FCF.20106@cloudview.com> <20060506030038.GA14966@xor.obsecurity.org> In-Reply-To: <20060506030038.GA14966@xor.obsecurity.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AV-Checked: by skipjack Cc: freebsd-questions Subject: Re: rm: Operation not permitted 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: Sat, 06 May 2006 03:10:04 -0000 Kris Kennaway wrote: > On Fri, May 05, 2006 at 07:54:07PM -0700, John Pettitt wrote: > >> I'm having trouble erasing some files - this on a 6.1RC system (built >> from -STABLE) - I created a system image using his script: >> >> #!/bin/sh >> make buildworld KERNCONF=CLOCK >> make buildkernel KERNCONF=CLOCK >> mkdir -p /raid/diskless/clock >> make installworld DESTDIR=/raid/diskless/clock >> cd /usr/src/etc; make distribution DESTDIR=/raid/diskless/clock >> cd /usr/src >> make installkernel KERNCONF=CLOCK DESTDIR=/raid/diskless/clock >> >> and now when I try to delete it this happens ... >> >> # rm -rf clock >> rm: clock/bin/rcp: Operation not permitted >> rm: clock/bin: Directory not empty >> rm: clock/lib/libcrypt.so.3: Operation not permitted >> rm: clock/lib/libc.so.6: Operation not permitted >> rm: clock/lib: Directory not empty >> rm: clock/libexec/ld-elf.so.1: Operation not permitted >> rm: clock/libexec: Directory not empty >> rm: clock/sbin/init: Operation not permitted >> rm: clock/sbin: Directory not empty >> >> and so on. >> >> The system is running at securelevel -1 and the rm fails even in single >> user mode - what am I missing? >> > > chflags -R noschg > > Kris > Thanks that did it. Not enough caffeine today. John