Re: Erasing Write-Protected Files
"Taylor, ForrestX" <[email protected]>
| Newsgroups | gmane.linux.redhat.release.seawolf |
|---|---|
| Message-ID | <[email protected]> |
Shane C Branch wrote: > Gregory Malsack wrote: > > This is what I get. Not sure what it means... > > > > s--ia------- lsof > > > > lsof is the files that was changed and no longer works. I am trying to > > overwrite the file with a copy from another system. > > > > -----Original Message----- > > Is that file in use, and that's why you can't delete it? > -- The i switch means that it is immutable, and cannot be changed. Did the original poster change this file? If not, the box may have been hacked, and the file replaced with a hacked one. If so, reinstall. To remove the immutable switch (and the others), use chattr: chattr -sia lsof Forrest --