|
发表于 2004-4-16 14:27:27
|
显示全部楼层
最初由 风筝 发表
谢谢,搞定了
lsattr file
--------i---------- files
不知道这个i是什么意思。chattr -i file
然后可以执行了,改完以后我将它:chattr +i file
这样是不是恢复原样了?
是不是恢复鸳鸯,自己试试喽~~~
man chattr
...
A file with the `i' attribute cannot be modified: it cannot be deleted
or renamed, no link can be created to this file and no data can be
written to the file. Only the superuser can set or clear this
attribute.
...
大概意思是说如果一个文件被设置了i属性,那么这个文件不能删除,不能修改,不能被改名,不能被用于链接....只有root可以设置或清楚这个属性
这是出于对文件的安全需要! |
|