Home>Article>Operation and Maintenance> 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!