在Linux服务器root用户依然遇到删除不掉得文件如何办 ,宝塔用命令无法删除文件得解决问题,使用rm -rf删除命令提示Operation not permitted 如何解决

在Linux服务器遇到删除不掉得文件如何办 ,宝塔用命令无法删除文件得解决问题

用宝塔默认删除工具提示已经移动回收站,而回收站文件在,选中被删除得文件依然在

费解,因为我可是root用户阿

然后用Linux 命令

rm -rf 文件夹名称

来删除提示

rm: cannot remove 'zb_install/index.php': Operation not permitted
rm: cannot remove 'zb_install/language/zh-tw.php': Operation not permitted
rm: cannot remove 'zb_install/language/en.php': Operation not permitted
rm: cannot remove 'zb_install/language/zh-cn.php': Operation not permitted

最后还是宝塔企业服务群找到解决方案:

最终解决方案:

chattr -iaR /wwwwwwww/lm/lm

对目录执行

chattr -iaR

又学习了。

猜你喜欢

转载自blog.csdn.net/dujiangdu123/article/details/128064834