V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
emma3
V2EX  ›  Apple

MAC OS 怎样修改系统只读文件?

  •  
  •   emma3 · 2023-04-29 17:31:09 +08:00 · 1085 次点击
    这是一个创建于 366 天前的主题,其中的信息可能已经有所发展或是发生改变。

    SIP 关闭了,用挂载命令显示: sudo mount -uw / mount_apfs: volume could not be mounted: Permission denied mount: / failed with 66

    请问有办法修改吗? Monterey 12.6.5 系统。

    3 条回复    2023-05-01 09:59:06 +08:00
    emma3
        1
    emma3  
    OP
       2023-04-29 17:34:07 +08:00
    root 权限用 vim 修改,保存时一直显示只读,chmod 改不了,提示只读。
    Granthese
        2
    Granthese  
       2023-04-29 17:59:41 +08:00
    mrtctl
        3
    mrtctl  
       2023-05-01 09:59:06 +08:00
    可以说一下要改的具体文件。没记错的话正常开机后,Mac 系统分区是一个 Apple 签名的只读的快照,所以无论 SIP 如何都无法修改。具体可以看 https://eclecticlight.co/2020/06/25/big-surs-signed-system-volume-added-security-protection/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5257 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:57 · PVG 15:57 · LAX 00:57 · JFK 03:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.