问题描述
我想在根文件复制到/ System文件夹。它运作良好,在所有previous OS X版本,但不是在埃尔卡皮坦10.11
在这里,我怎么下根复制文件终端:
MACMINI:〜$名为myusername苏须藤 -
MACMINI:〜#根CP /Users/myusername/Desktop/myfile.plist /系统/资源库/ LaunchDaemons /
至于结果,我收到一个错误:
CP:/System/Library/LaunchDaemons/myfile.plist:不允许操作
考虑到某些系统目录从下OS X 10.11(埃尔卡皮坦)在所有被写入(即使有根),除非安全测量功能被禁用(请参阅回答保护通过的克里斯Ostmo 的),这显然是一个好主意,不能修改这些目录的所有定制系统的黑客。
自己LaunchDaemons应安装:
/库/ LaunchDaemons /
(没有的 /系统/资源库/ LaunchDaemons / 的)
I'm trying to copy under root file into /System folder. It works well on all previous OS X version but not on El Capitan 10.11
Here how I copy file under root in terminal:
MACMINI:~ myusername$ sudo su -
MACMINI:~ root# cp /Users/myusername/Desktop/myfile.plist /System/Library/LaunchDaemons/
As result I receive an error:
cp: /System/Library/LaunchDaemons/myfile.plist: Operation not permitted
Considering that certain system directories are protected from being written at all (even with root) under OS X 10.11 (El Capitan) unless security measurements are disabled (see answer by Chris Ostmo) it's obviously a good idea to not modify those directories at all with custom system hacks.
Own LaunchDaemons should be installed to:
/Library/LaunchDaemons/
(not /System/Library/LaunchDaemons/)
这篇关于根下的文件复制失败得到了在OS X埃尔卡皮坦10.11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!