美文网首页
关闭 OSX 10.11 SIP (System Integri

关闭 OSX 10.11 SIP (System Integri

作者: 关羽007 | 来源:发表于2019-03-08 11:46 被阅读0次

    关于MAC系统没有修改/usr/bin和/usr/sbin文件夹权限问题是由于系统启用了SIP(System Integerity Protection)导致root用户也没有修改权限

    具体做法是:

    1.重启电脑

    2.command + R 进入recover模式

    3.点击最上方菜单使用工具,选择终端

    4.运行命令csrutil disable

    5.当出现successfully字样,代表关闭成功!

    问题:

    在进行之前必需要确认你能进入Recovery OS,所以将你的系统重开机后按下Option(alt)键后进入选择启动磁碟

    看到你的启动磁碟名称有Recovery HD代表你具有Recovery OS,如果你未包含此OS,在开机时按下Option(alt) + R进入网路开机连线至Apple伺服器进行Recovery OS的安装,详细说明传送门

    recover模式下 csrutil常见命令

    查看状态执行csutil status:

    SystemIntegrity Protection status: enabled (Custom Configuration).

    单单关闭SIP执行sudo csrutil enable --no-internal:

     Successfully enabled System Integrity Protection. Please restart the machineforthe changes to take effect.

    如果你出现

    csrutil: failed to modify system integrity configuration. This tool needs to be executed from the Recovery OS.

    代表你使用的并非Recovery OS开机,请确定从Recovery OS开机再执行

    相关文章

      网友评论

          本文标题:关闭 OSX 10.11 SIP (System Integri

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