1. 第一步:查看文件属性
lsattr xxx  查看文件属性(xxx为文件名)

看到的情况

-----a-------或者-----i-------
  1. 第二步:去除属性
chattr -a xxx 或者 chattr -i xxx
  1. 第三步:删除文件
rm -rf xxx

注意:

如果在执行第二步的时候报错(没有着命令),那么需要重新下载chattr的依赖包
我的操作系统是centos7

yum -y reinstall e2fsprogs-1.42.9-16.el7.x86_64
echo $PATH

rm: cannot remove `xxx’: Operation not permitted的解决方法相关推荐

  1. 【报错解决方案】rm 删除不了文件:rm: cannot remove XXX: Operation not permitted

    0x00 问题描述 今天在使用服务器的时候,使用rm删除文件的时候,发现报错:rm: cannot remove 'data/': Operation not permitted, 即使使用sudo也 ...

  2. npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法

    npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法 参考文章: (1)npm install ...

  3. Linux 删除文件时报错 rm: cannot remove ‘xxx xxx‘:Permission denied

    Linux 删除文件时报错 rm: cannot remove 'xxx xxx':Permission denied 1. 原因 没有这个文件的所有权 2. 解决办法 方法一: # 使用 root ...

  4. ping: icmp open socket: Operation not permitted 的解决办法

    简介:ping: icmp open socket: Operation not permitted 的解决办法 为 ping 加上 suid 即可. Author:yangyingchao, 201 ...

  5. linux vim操作提示:“Can't open file for writing”或“operation not permitted”的解决办法

    linux vim操作提示:"Can't open file for writing"或"operation not permitted"的解决办法 在linu ...

  6. Linux操作提示:“Cant open file for writing”或“operation not permitted”的解决办法

    Linux操作提示:"Cant open file for writing"或"operation not permitted"的解决办法 在Linux上使用v ...

  7. busybox 的insmod can't insert operation not permitted 错误解决

    busybox 的insmod can't insert operation not permitted 错误解决 1. 起因 因为要在Mac OS X操作一款Tiny2451的开发板.原本通过串口转 ...

  8. 有关Run-Time Check Failure #2 - Stack around the variable 'XXX' was corrupted.错误的解决方法

    有关Run-Time Check Failure #2 - Stack around the variable 'XXX' was corrupted.错误的解决方法 今天我在敲完一段代码运行的时候出 ...

  9. svn cleanup failed–previous operation has not finished 解决方法

    svn cleanup failed–previous operation has not finished 解决方法 参考文章: (1)svn cleanup failed–previous ope ...

最新文章

  1. java实现将String的数字提取出来
  2. Python之基础知识
  3. CCNA认证指南note 01
  4. OpenCV纹理对象的实时姿态估计
  5. android圆形变方形动画,CSS3 简单的圆形/方形变形动画
  6. EntityFramework进阶——Entity Splitting和Table Splitting
  7. 第二冲刺阶段绩效评估
  8. 任正非:6G华为也是领先世界 或在十年后投入使用
  9. Java 集合系列:Vector源码深入解析
  10. Android商品详情页上拉查看详情
  11. arccos用计算机,arccos0(arccos在线计算器)
  12. 计算机网络感知层,物联网感知层与感知节点
  13. 《On Java》介绍
  14. linux添加HP网络打印机,在Ubuntu 18.10系统下安装HP网络打印机的方法
  15. 多测师_Python(open 文件)
  16. python猴子吃桃递归_Python猴子吃桃题源码​:请问第一天摘了多少桃?
  17. 假如贸易条件为1单位计算机换22单位小麦,请哪位强人帮我解答下有关国际贸易的一道题...
  18. 企业升级改造项目中的电力监控系统的研究与应用
  19. 众数问题(分治方法解决)
  20. while(0),while(1),while(表达式)

热门文章

  1. 浏览器劫持定义及危害、处理浏览器被劫持自动跳转到某个网页的修复教程
  2. 数据结构:假设有一个带头结点的单链表L,每个结点值由单个数字、小写字母和大写字母构成。设计一个算法将其拆分成3个带头结点的单链表L1、L2和L3,L1包含L中的所有数字结点,L2包含L中的所有小写字母
  3. ANC主动降噪蓝牙耳机南A2测评:日常通勤降噪亲民之选!
  4. 华清远见上海中心22071班 9.2作业
  5. 盗取手机验证码诈骗的克星来了:号码认证服务为你保驾护航
  6. ghost还原固态硬盘_高级格式化_固态硬盘到底能不能使用Ghost软件?终于说明白了...
  7. 迅雷某页面存在sql注入漏洞
  8. 女朋友突然天天加班,用python写个定位脚本,直接抓到现场
  9. tenacity发生异常/失败/错误时重试retry机制,Python
  10. 使用EKL(Elasticsearch、Kibana、Logstash)进行服务器日志的汇聚与监控