samedi 21 février 2015

Delete/repair files with weird permissions/owner/group


I have the following files (output of ls -l):



?rw------- 6144 1684128777 2049835008 50331648 Jan 1 1970 image1.jpg
br-xrwSrw- 25120 1987343475 1936028517 110, 110 May 30 2032 image2.jpg
?--------- 25966 774963978 1954164340 187 Apr 8 1996 image3.jpg
br--r-xrwT 9776 892169583 859126070 80, 76 May 19 1999 image4.jpg
c--xr-xrw- 25967 1852137846 1931502624 77, 32 Nov 15 2031 image5.jpg


A normal file in the same directory looks like:



-rw-r--r-- 1 apache apache 198849 Jan 29 21:45 image6.jpg


I already tried to remove those weird files with rm -f but I got the error:



rm: cannot remove `image1.jpg': Operation not permitted


When I try to check the flags/remove immutable flag with lsattr and chattr then I get the following errors:



lsattr: Operation not supported While reading flags on image1.jpg
chattr: Operation not supported while reading flags on image1.jpg


Questions



  1. What is going on here? These files seem corrupt?

  2. How can I remove/fix these files?



Aucun commentaire:

Enregistrer un commentaire