Home  >  Q&A  >  body text

linux - Mac 出现文件夹权限文件,求解决

zhangsandeMacBook-Pro:usr zhangsan$ sudo chmod 777 ./lib
chmod: Unable to change file mode on ./lib: Operation not permitted

迷茫迷茫2742 days ago725

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-17 14:43:05

    OSX has a kernel protection that needs to be turned off in recovery mode. You can find out more about it on Quora. When I compiled PHP and installed it, I did not have enough permissions, that is, I could not change system-level files. After turning it off, it was fixed. This situation does not exist below 10.10

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 14:43:05

    The correct answer is that even if you give sudo permissions at the system level, it won't work

    reply
    0
  • Cancelreply