Friday, March 4, 2011

sudo rm Operation not permitted, undeletable file

ever encounter such a file?
you can't even rm with root.

this file might be marked as immutable, to confirm, you can use lsattr to confirm, if you see an "i" then it's immutable, you can't even remove with root


use chattr -i
the one i had to use is: sudo chattr -s, sudo chattr -u, sudo chattr -a too then able to remove this file
then you can remove

No comments:

Post a Comment