【问题标题】:/usr/include/zconf.h attribute became ----------/usr/include/zconf.h 属性变为 ----------
【发布时间】:2016-05-06 09:20:49
【问题描述】:

运行 yum update /usr/include/zconf.h 后变成了

    ---------- 1 root root 9544 May  6 16:43 /usr/include/zconf.h
    chmod 0766 /usr/include/zconf.h
    chmod: changing permissions of `/usr/include/zconf.h': Permission denied

即使在根目录下我也无法更改属性。如何更改属性?

请帮忙。 谢谢

【问题讨论】:

    标签: linux file permissions


    【解决方案1】:

    以下应该修复权限:

    sudo su -
    # enter root password...
    
    chmod 755 /usr /usr/include
    chmod 644 /usr/include/zconf.h
    

    你需要wx文件的父目录权限:

    • x - 读取目录内容
    • w - 修改目录中的文件

    【讨论】:

      猜你喜欢
      • 2021-08-09
      • 2017-02-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-11
      • 2023-01-17
      • 2017-06-05
      • 1970-01-01
      相关资源
      最近更新 更多