美文网首页
chmod: changing permissions of `

chmod: changing permissions of `

作者: 端木安玉 | 来源:发表于2019-11-22 09:50 被阅读0次

    在阿里云主机上搭建的LAMP环境,
    突然发现网站被挂马 ,解决挂马问题 在修改相关文件xxx.php的属性的时候
    chmod: changing permissions of `xxx.php': Operation not permitted
    但是报了上面的一个错误
    费了一番周折,终于查到用 chattr 可以解除这个限制
    第一步:首先先查看一下属性
    lsattr xxx.php
    结果显示为:----i-------- xxx.php
    第二步:然后去除i这个属性
    chattr -i xxx.php

    以上为个人亲测有效 详情请看下面的链接
    Linux lsattr命令 :https://www.runoob.com/linux/linux-comm-lsattr.html

    相关文章

      网友评论

          本文标题:chmod: changing permissions of `

          本文链接:https://www.haomeiwen.com/subject/wedfwctx.html