From owner-freebsd-questions@FreeBSD.ORG Sun Jun 4 16:19:33 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 620B316A4D5 for ; Sun, 4 Jun 2006 16:19:33 +0000 (UTC) (envelope-from daeg@houston.rr.com) Received: from ms-smtp-04.texas.rr.com (ms-smtp-04.texas.rr.com [24.93.47.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 095DD43D6B for ; Sun, 4 Jun 2006 16:19:32 +0000 (GMT) (envelope-from daeg@houston.rr.com) Received: from cpe-24-167-78-249.houston.res.rr.com (cpe-24-167-78-249.houston.res.rr.com [24.167.78.249]) by ms-smtp-04.texas.rr.com (8.13.6/8.13.6) with ESMTP id k54GJVXY019124; Sun, 4 Jun 2006 11:19:31 -0500 (CDT) From: David J Brooks Organization: KC5WNK To: freebsd-questions@freebsd.org Date: Sun, 4 Jun 2006 11:19:42 -0500 User-Agent: KMail/1.9.1 References: In-Reply-To: X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(=?utf-8?q?gxJxxc=0A=09R=09nSNPNr*/=5E=7EStawWU9KDJ-CT0k=24f=23?=@t2^K&BS_f|?ZV/.7Q MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606041119.42861.daeg@houston.rr.com> X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: Jack Stone Subject: Re: Cannot delete stubborn files 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: Sun, 04 Jun 2006 16:19:36 -0000 On Sunday 04 June 2006 08:11, Jack Stone wrote: > Hello: > I have 2 files that resists all efforts to delete them. I can even move > them to another directory, but still cannot delete. Can chmod too, but > still same resistance; > > I originally figured they occupied a bad spot on the HD, but now not sure > about that. > > Please, any suggestions about what to do to remove these files? > > Here are the files and the error message: > rm: local/lib/perl5/5.6.1/mach/Sys/Hostname.pm: Operation not permitted > rm: local/lib/perl5/5.6.1/mach/Sys/Syslog.pm: Operation not permitted > > I've gone all the way down to the last dir and tried to delete them there. > No joy! > All directories in between only include the dirs and no files. I want to > delete the entire path of directories, but those 2 stubborn files will not > permit that. > > rm: local/lib/perl5/5.6.1/mach/Sys: Directory not empty > > Please, any help appreciated! I had a similar problem recently with some a directory created on the fly by ktorrent. Everytime I tried to delete them they would appear in the trashcan, I would flush them, and sooner or later the directory and all its files would be right back where they started. I finally noticed that they reappeared everytime I restarted ktorrent. So I went poking under the hood and found a reference to them in deep down in ~/.kde/share/apps/ktorrent/cache folder. Apparently ktorrent was recreating empty files in anticipation of downloading a torrent that was no longer in the queue. Perhaps something similar is going on with your machine? David -- Sure God created the world in only six days, but He didn't have an established user-base.