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

Linux files cannot be modified by root

王林
王林Original
2020-02-15 15:15:012592browse

Linux files cannot be modified by root

首先运行如下命令,查看文件是否被添加了sia属性:

lsattr /var/spool/cron/root

结果如下:

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

在线学习视频推荐:linux视频教程

然后使用如下命令,删除sia属性

chattr -isa /var/spool/cron/root

完成之后即可对文件进行修改了。

相关文章教程推荐:linux教程

The above is the detailed content of Linux files 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