Cannot delete stubborn files

Chris Hill chris at monochrome.org
Sun Jun 4 06:38:03 PDT 2006


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 at monochrome.org
**                     [ Busy Expunging <|> ]


More information about the freebsd-questions mailing list