1、阿里云服务器提示存在挖矿行为,路径在 /etc/zzh,我们做下删除动作,发现不能删除
bash
[root@MSH etc]# rm -f zzh
# 提示
rm: cannot remove 'zzh': Operation not permitted
2、解决方法:
(1)、查看文件权限
bash
[root@MSH etc]# lsattr zzh
# 文件只能修改,不能删除
----ia-------e-- zzh
(2)、修改 chattr 权限
bash
chmod +x /usr/bin/chattr
(3)、删除文件权限
bash
chattr -ia zzh
(4)、删除成功
bash
rm -f zzh