Linux – Why Can’t Root Delete This File?

fileslinuxpermissionsrm

I have directory exam with 2 files in it. I need to delete files but permission is denied. Even rm -rf command can't delete these files. I logged in as a root user.

enter image description here

Best Answer

From root user check attributes of files

# lsattr 

if you notice i (immutable) or a (append-only), remove those attributes:

# man chattr
# chattr -i [filename]
# chattr -a [filename]
Related Question