小编Sob*_*bra的帖子

macOS Sierra 10.12.2 root 无法写入 /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
Run Code Online (Sandbox Code Playgroud)

root terminal permissions macos

3
推荐指数
1
解决办法
3185
查看次数

标签 统计

macos ×1

permissions ×1

root ×1

terminal ×1