From owner-freebsd-questions Tue Apr 10 14:25:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 92E2B37B422 for ; Tue, 10 Apr 2001 14:25:05 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([fec0::2e0:7dff:fe81:749d]) by scientia.demon.co.uk with esmtp (Exim 3.22 #1) id 14n5cx-000F1D-00; Tue, 10 Apr 2001 22:24:43 +0100 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.11.3/8.11.3) id f3ALOhx01986; Tue, 10 Apr 2001 22:24:43 +0100 (BST) (envelope-from ben) Date: Tue, 10 Apr 2001 22:24:43 +0100 From: Ben Smithurst To: Ilya Cc: freebsd-questions@freebsd.org Subject: Re: cant remove files with "operation not allowed error" Message-ID: <20010410222443.D8173@scientia.demon.co.uk> References: <20010410161726.A25069@krel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010410161726.A25069@krel.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ilya wrote: > Hi, on my laptop i went for current to see if it will help me out > with pcmcia, it didnt, so i went back to stable. but now there are > several files i cannot delete (some lib files and old kernel modules), > rm doesnt work, i can cp them, i can mv them in same partition, but > not to a different one. one time i got crosslink error, but i always > get "operation not allowed" when i try to remove them. i have run > fsck numerouse times and it had found no problems with my drives. any > suggestions? Please wrap your lines at around 76 characters, it makes your message much easier to read... On to the problem... What does `ls -lo' show on the problematic files? It may have some flags set, in which case `chflags 0' on the files in question will clear those flags and allow you to delete them. -- Ben Smithurst / ben@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message