關閉 Mac 的 SIP (System Integrity Protection)

Mac disable System Integrity Protection (SIP)

這篇是要簡單介紹 Mac 要如何關閉 SIP (System Integrity Protection),若是沒有必要,請不要亂關閉安全保護的機制,這篇是為了 VirtualBox 無法在 Mojave 上使用的其中一篇子文章
- 首先將 Mac 用 Recovery Mode 開機,於重開機時按住 Command + R 直到 Apple 的 Logo 出現後放開,即可進入復原模式
- 於上方選單中,點選: Utilities > Terminal,開啟終端機
- 執行以下語法,用以關閉 SIP
csrutil disable
- 重新開機
這樣就完成關閉 SIP 的動作了
若需要確認是否成功,可以執行以下語法
ls -lO /System /usr
列出的資料夾有 restricted 字眼,代表被 SIP 所保護
預設 (= SIP enabled),以下的資料夾應該都是被 restricted 的 (Apple Support page)
/System
/usr
/bin
/sbin
Apps that are pre-installed with OS X
而下列的資料夾則應該是可以自由存取的:
/Applications
/Library
/usr/local
[How do I disable System Integrity Protection (SIP) AKA "rootless" on macOs [OS X] Apple has introduced System Integrity Protection, also known as "rootless", with OS X 10.11, El Capitan. I understand…apple.stackexchange.com](https://apple.stackexchange.com/a/208481 "https://apple.stackexchange.com/a/208481")

![[IT 鐵人賽] ASP.NET Core 與 Log 紀錄和追蹤的愛恨交織 - Day 05 - Elmah - 02](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1776070454149%2Fa0702417-5357-4217-a572-7ba53ea36735.png&w=3840&q=75)
![[IT 鐵人賽] Azure Data Service - Day 04 - Cognitive Service - 辨識 - Video Indexer](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1776070473207%2F6423fd4a-4041-4bb2-b918-4cfe3f9aea5e.png&w=3840&q=75)