shell - Centos使用root用户也无法删除文件
高洛峰
高洛峰 2017-04-24 16:00:34
0
1
759

问题现象:
Centos系统下使用root用户也无法删除文件。文件是因为网站程序有漏洞,被hack利用在机器上产生的。

    root@localhost#rm -f list-128-1.html 
    rm: cannot remove `list-128-1.html': Permission denied

已经使用lsattr命令检查过文件的隐藏属性

    root@localhost#lsattr list-128-1.html 
    --------------- list-128-1.html
    root@localhost#chattr -i list-128-1.html
    root@localhost#rm -f list-128-1.html
    rm: cannot remove `list-128-1.html': Permission denied    

已经使用chattr -i list-128-1.html去除该文件的i熟悉,但是依然提示无权限删除文件。
请教大神,还有什么可能会让root无法删除文件吗?或者请推荐给我一种能强制删除这种文件的方法,谢谢。

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

répondre à tous(1)
仅有的幸福

Les attributs

i sont spécialement utilisés pour protéger les fichiers importants contre la suppression

 ;
chattr -i list-128-1.html
rm -f list-128-1.html
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!