Mac进行一些操作时提醒Operation not permitted的完美解决
Posted wbqcheng
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac进行一些操作时提醒Operation not permitted的完美解决相关的知识,希望对你有一定的参考价值。
Mac版本10.14.5 ,向下向上都行:
1.关闭mac的安全机制,首先可以在正常模式下,输入 csrutil status 命令,查看mac安全机制是否开启。
2.如果 Protection status: enabled 则要进入安全模式进行关闭。
3.进行安全模式操作: 点击屏幕左上角苹果图标,点击重新启动按钮,屏幕暗下后立马按住command + R键,直到出现屏幕中央出现苹果图标停手。
4.进入安全模式界面后不要,先会提醒设置语言,然后会看到安全界面操作,屏幕最上面一排,找到实用工具菜单,再在里面找到终端,点击后输入 csrutil disable 回车后会出现一串英文,大致意思是安全模式已经关闭,重启后生效进行操作。然后输入 reboot 重启即可。
5.重启后在terminal终端中输入 csrutil status 会看到Protection status:disable .意思是安全模式的状态:是关闭的。
6.进行赋权操作,注意*:实用命令前加 sudo ,即 sudo chmod 777 * 或者sudo chmod -R 777 文件名。
7.ok完成操作后,可以恢复安全模式开启状态了,方法与关闭一样,只是命令变为 csrutil enable;
8.给个鼓励吧!哈哈~~~
以上是关于Mac进行一些操作时提醒Operation not permitted的完美解决的主要内容,如果未能解决你的问题,请参考以下文章
mac install: /usr/bin/unrar: Operation not permitted
mac 在终端上运行脚本,提示PermissionError: [Errno 1] Operation not permitted
mac 在终端上运行脚本,提示PermissionError: [Errno 1] Operation not permitted
Mac OS X 11中的/usr/bin 的“Operation not permitted”
kotlin.NotImplementedError: An operation is not implemented: not implemented AlertDialog