运行 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
即使在 root 下,我也无法更改属性。如何更改属性?
请帮忙。 谢谢
最佳答案
以下应该修复权限:
sudo su -
# enter root password...
chmod 755 /usr /usr/include
chmod 644 /usr/include/zconf.h
您需要对文件父目录的wx
权限:
x
- 读取目录内容w
- 修改目录内的文件
关于linux -/usr/include/zconf.h 属性变成了 ----------,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37068702/