Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jun 2006 09:39:51 -0400 (EDT)
From:      Chris Hill <chris@monochrome.org>
To:        Jack Stone <antennex@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Cannot delete stubborn files
Message-ID:  <20060604093513.X56404@tripel.monochrome.org>
In-Reply-To: <BAY106-F10C176F31D5732F59F8EAECC970@phx.gbl>
References:  <BAY106-F10C176F31D5732F59F8EAECC970@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 4 Jun 2006, Jack Stone wrote:

> I have 2 files that resists all efforts to delete them.

[...]

> 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

Make sure the files do not have the system immutable flag set:

# chflags noschg local/lib/perl5/5.6.1/mach/Sys/Hostname.pm
# chflags noschg local/lib/perl5/5.6.1/mach/Sys/Syslog.pm

...and then see if you can't delete them. I don't know why the flag 
would be set, but it's something to try.

HTH.

--
Chris Hill               chris@monochrome.org
**                     [ Busy Expunging <|> ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060604093513.X56404>