Centos下用root账户删除文件提示:Operation not permitted是什么原因呢?
Linux下root用户被提示:Operation not permitted怎么办?
问题描述:
我今天用CentOs的最高权限root账户去rm文件,居然报错Operation not permitted。查看权限也没有问题。可想而知有可能文件被保护了。用命令lsattr检查一下就知道。
[root@linux root]# lsattr a.txt
---i---------- a.txt
结果显示带属性" i ",果然是保护了。
解决办法:
用chattr 解除即可
[root@linux root]# chattr -i a.txt
然后再执行rm:
[root@linux root]# rm -rf a.txt
果然执行成功。问题描述:
我今天用CentOs的最高权限root账户去rm文件,居然报错Operation not permitted。查看权限也没有问题。可想而知有可能文件被保护了。用命令lsattr检查一下就知道。
[root@linux root]# lsattr a.txt
---i---------- a.txt
结果显示带属性" i ",果然是保护了。
解决办法:
用chattr 解除即可
[root@linux root]# chattr -i a.txt
然后再执行rm:
[root@linux root]# rm -rf a.txt
果然执行成功。问题描述:
我今天用CentOs的最高权限root账户去rm文件,居然报错Operation not permitted。查看权限也没有问题。可想而知有可能文件被保护了。用命令lsattr检查一下就知道。
[root@linux root]# lsattr a.txt
---i---------- a.txt
结果显示带属性" i ",果然是保护了。
解决办法:
用chattr 解除即可
[root@linux root]# chattr -i a.txt
然后再执行rm:
[root@linux root]# rm -rf a.txt
问题描述:
我今天用CentOs的最高权限root账户去rm文件,居然报错Operation not permitted。查看权限也没有问题。可想而知有可能文件被保护了。用命令lsattr检查一下就知道。
[root@linux root]# lsattr a.txt
---i---------- a.txt
结果显示带属性" i ",果然是保护了。
解决办法:
用chattr 解除即可
[root@linux root]# chattr -i a.txt
然后再执行rm:
[root@linux root]# rm -rf a.txt
果然执行成功。
not+doing用法--D--anything about the accident ,he w 英语 2020-05-13 …
Tony was very angry at_____to a higher position.A 英语 2020-05-14 …
1、I have a bike now,so I _____ need to take a bus 英语 2020-05-16 …
Susan still looked very confused.She seemed ____ 英语 2020-05-16 …
He said he would ()walk A no more B no less C not 英语 2020-05-16 …
Linda has just come to china ,so she has _friends 英语 2020-05-16 …
【 】 from his parents for a long time he was worri 英语 2020-05-16 …
Father often tells me____too much time on compute 其他 2020-05-16 …
1.The man lost the money.But he __about it A.trie 英语 2020-05-17 …
高一英语选择题,要有理由( )1._____ the bus, but also he left 英语 2020-06-27 …