Home  >  Article  >  Operation and Maintenance  >  Files in Linux cannot be modified by root

Files in Linux cannot be modified by root

王林
王林Original
2020-02-14 15:43:103290browse

Files in Linux cannot be modified by root

1. First execute the following command to check whether the file has been added with the sia attribute;

lsattr /var/spool/cron/root

The results are as follows:

(Free learning video tutorial sharing : linux video tutorial)

s---ia------- /var/spool/cron/root

2. Then execute the following command to delete the sia attribute;

chattr -isa /var/spool/cron/root

After deletion, the file can be modified.

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of Files in Linux cannot be modified by root. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn