macOS Sierra 10.12.2根无法写入/ usr / sbin

索布拉

谁能解释为什么?

# whoami
root

# ls -ld /usr/sbin
drwxr-xr-x  246 root  wheel  8364 Jan  3 14:36 /usr/sbin

# pwd
/

# touch test-file
# ls -ltr test-file
-rw-r--r--  1 root  wheel  0 Jan 10 00:27 test-file

# cp test-file /usr/sbin
cp: /usr/sbin/test-file: Operation not permitted

# ls -ld@ /usr/sbin
drwxr-xr-x  246 root  wheel  8364 Jan  3 14:36 /usr/sbin
greg-449

这是MACOS系统完整性保护(SIP),其防止甚至根从改变事物中/System/usr/bin/sbin和预安装的应用。

可以写的/usr一个例外/usr/local

有关此内容的Apple支持文档在这里

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

当MacOS Sierra上的VPN处于活动状态时,为什么/ usr / sbin / racoon需要入站连接

在macOS Sierra上撤消/ usr / bin的错误chown

相机无法在MacOS Sierra(和High Sierra)上使用

无法在macOS High Sierra上安装抖动

无法在macOS Sierra上安装ng CLI

CocoaPods无法在macOS High Sierra中工作

无法在MacOS Sierra上运行“ ssh -X”

Jenkins无法在macOS 10.12(Sierra)上启动

无法从源MacOS High Sierra构建Tensorflow

无法在macOS Sierra上安装自制软件

/ bin,/ sbin,/ usr / bin,/ usr / sbin,/ usr / local / bin,/ usr / local / sbin之间的差异

Auditbeat排除/ usr / sbin / cron

在MacOs High Sierra中运行的MongoDB的写入操作非常缓慢

暗模式macOS Sierra

macOS Sierra上的Valgrind

无法删除用户-运行'/ usr / sbin / userdel'失败:子进程已退出,代码为16

无法删除JDK – / usr / sbin / alternatives:没有这样的文件或目录

无法在macOS Sierra上使用Homebrew安装PHP 7

无法在Perl 5.32.0 MacOS Sierra上安装Test :: File

无法使用PHP 7在MacOS Sierra上启用OPcache

无法将Samsung Gear Iconx耳塞与macOS Sierra配对

无法在macOS Sierra上的Gogland 1.0 EAP中启动调试

无法在 macOS High Sierra 10.13.6 上安装多语言

无法在MacOS Sierra上使用pip3安装mysqlclient

macOS Sierra更新后无法进行git同步

macOS Sierra虚拟主机无法正常工作

MacOS High Sierra-无法通过SSH与Github进行交互

无法在macOS Sierra上还原软件包

无法在macOS High Sierra上打开SQL编辑器