【问题标题】:mv Operation not permitted in terminalmv 终端不允许操作
【发布时间】:2020-09-12 21:05:38
【问题描述】:

英文说明

我尝试使用终端移动文件夹中的文件,使用以下代码:

sudo mv dnsmasq / usr / sbin /

结果我收到以下错误:

mv: rename dnsmasq to / usr / sbin / dnsmasq: Operation not permitted

即使我遵循了这种方法:

步骤:

 Apple menu -> System Preferences -> Security & Privacy -> Privacy -> Full Disk Access -> +

选择:

Applications -> Utilities -> folder -> Terminal -> open / grant terminal full disk access privileges. -> Relaunch terminal

为什么还是报错?

【问题讨论】:

    标签: macos terminal root dnsmasq


    【解决方案1】:

    为了写信给/usr/sbin,您需要禁用不推荐的系统完整性保护。如果这是您想要的,您可以使用命令csrutil disable; reboot 禁用它,但它更喜欢使用/usr/local/bin,并且您不必禁用 SIP 即可在其上写入。

    【讨论】:

    • 谢谢你的回答,但它仍然不适合我
    猜你喜欢
    • 2021-03-23
    • 1970-01-01
    • 1970-01-01
    • 2021-01-27
    • 1970-01-01
    • 2012-01-03
    • 2021-02-10
    • 2021-01-01
    • 2014-11-01
    相关资源
    最近更新 更多