---
title: "Linux 文件不能被root修改"
author: "myjcwy"
date: "2013-11-29T15:11:19Z"
tags: []
categories: ["操作系统"]
slug: "linux-root"
draft: false
lastmod: "2013-11-29T15:11:19Z"
id: 1982936
url: "https://myjcwy.iteye.com/blog/1982936"
---

转载备忘：[http://blog.csdn.net/lsgsunny/article/details/8638439](http://blog.csdn.net/lsgsunny/article/details/8638439)

 

使用 lsattr /var/spool/cron/root 查看文件被添加了sia属性：s---ia------- /var/spool/cron/root

使用：chattr -isa /var/spool/cron/root 把这三个属性去除即可对该文件进行修改了