原因
MacでsudoができないのはSystem Integrity Protectionが有効になっているため。
対策
自己責任で以下を実施。
-
Macをreboot
-
立ち上がるときに
command + R
を押しっぱなしにして Recovery OSを起動。 -
ターミナルを起動
-
SIPをdisableにする。
csrutil disable
最後にMacをreboot
エラーメッセージ
csrutil: failed to modify system integrity configuration. This tool needs to be executed from the Recovery OS.
環境
~ % sw_vers
ProductName: Mac OS X
ProductVersion: 10.15.6
BuildVersion: 19G73