Mac OS don't have permission to usr/bin folder at all

前端 未结 3 420
野的像风
野的像风 2021-01-07 20:33

I am trying to rename the \"codesign\" file name for patch problem, but I tired everything and seems like I can only have read access to the filea inside usr/bin

相关标签:
3条回答
  • 2021-01-07 21:12

    Try changing the ownership Code:

    chown -R "user_name" folder_name
    

    Eg:

    chown -R "John Doe" codesign
    
    0 讨论(0)
  • 2021-01-07 21:27

    execute command line as blow:

    sudo gem update --system

    sudo gem install -n /usr/local/bin cocoapods

    0 讨论(0)
  • 2021-01-07 21:37

    Have you upgraded Mac OS X to the "El Capitan" version?

    If so, you can't modify anything in /System, /bin, /sbin, or /usr (except /usr/local) anymore, even using the root user. They are calling this "feature" as "System Integrity Protection".

    I had the same problem and found this explanation here.

    0 讨论(0)
提交回复
热议问题