if you are unable to delete the file from the root in centos or any Linux then follow this tutorial.

 

  1. Run yum remove e2fsprogs
  2. yum install e2fsprogs
  3. chattr -ia /file/name/example/test.php
  4. rm -rf /file/name/example/test.pp

 

Done, 100% this will help you to delete any file that shows Operation not permitted 

 

the first command will remove chattr from your Linux in case corrupt anyfile of chattr or if you see any error like chattr not found or chroot not found, removing the chattr from server will help you to install it again with valid files 

 

then yum install or apt-get install will help you to install chattr /chroot in your server without any issue

 

chattr -ia this command remove any permission limitation on your file and set remove chattr lock and you can easily remove the file 

 

rm -rf will help you to delete the file!

 

 

Tutorial By Shahid Malla

Thank You

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)