Files in Linux cannot be modified by root

王林
Release: 2020-02-14 15:43:10
Original
3258 people have browsed it

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
Copy after login

The results are as follows:

(Free learning video tutorial sharing : linux video tutorial)

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

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

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

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!

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 admin@php.cn
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!