Can’t edit a file in Linux even the root

In some case, the Linux have some files will not allow user edit directly. It will append immutable permission to the file. The file will not allow every one to edit or delete, unless the attribute has been removed.

lsattr path_to_file

Will show the addition attribute for the file or folder.

chattr -i path_to_file

Will change the file to immutable permission.