Re: Unerasable file

Mike A. Harris (mharris@blackwidow.saultc.on.ca)
Wed, 5 Nov 1997 21:58:11 -0500 (EST)


On Tue, 4 Nov 1997, Andi Gutmans wrote:

> I have an unerasable file. fsck doesn't help,a nd I even tried to make a
> little cproggy that will call unlink() (who knows what checks rm does
> before). I still can't erase it.
> Here's some info:
> 22:11 vipe /bin.old# ls -ldg .
> 1 drwxr-xr-x 2 bin bin 1024 Nov 1 19:28 ./
> 22:11 vipe /bin.old# ls -lg csh
> 2048 cr-x-wSr-x 1 24 20480 0, 1 Jan 1 1970 csh
> 22:11 vipe /bin.old# rm csh
> Removing csh
> rm: csh: Operation not permitted
> 22:11 vipe /bin.old# chmod 700 csh
> chmod: csh: Operation not permitted
> 22:12 vipe /bin.old# chown root csh
> chown: csh: Operation not permitted
> 22:12 vipe /bin.old#
> uname -a
> Linux vipe.technion.ac.il 2.0.30 #9 Wed Oct 29 00:24:24 IST 1997 i586
> I have quota installed and it's an ext2 file system.
>
> If you have any suggestions/answers plz reply also directly to me as I
> don't read the list regularly.

Perhaps it is immutable?

man chattr
man lsattr

Mike A. Harris | Homepage: http://blackwidow.saultc.on.ca/~mharris
Computer Consultant | Am I online? - finger or ping capslock.dyn.ml.org
My dynamic address: http://blackwidow.saultc.on.ca/~mharris/ip-address.html
URL: Ross Meeks Homepage http://www3.sympatico.ca/rmeeks