Linux files cannot be modified by root

王林
Release: 2020-02-15 15:15:01
Original
2502 people have browsed it

Linux files cannot be modified by root

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

lsattr /var/spool/cron/root
Copy after login

结果如下:

s---ia------- /var/spool/cron/root
Copy after login

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

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

chattr -isa /var/spool/cron/root
Copy after login

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

相关文章教程推荐: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!

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!