emma3
V2EX  ›  Apple

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

  •  
  •   emma3 · Apr 29, 2023 · 2287 views
    This topic created in 1135 days ago, the information mentioned may be changed or developed.

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

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

    3 replies    2023-05-01 09:59:06 +08:00
    emma3
        1
    emma3  
    OP
       Apr 29, 2023
    root 权限用 vim 修改,保存时一直显示只读,chmod 改不了,提示只读。
    Granthese
        2
    Granthese  
       Apr 29, 2023
    mrtctl
        3
    mrtctl  
       May 1, 2023
    可以说一下要改的具体文件。没记错的话正常开机后,Mac 系统分区是一个 Apple 签名的只读的快照,所以无论 SIP 如何都无法修改。具体可以看 https://eclecticlight.co/2020/06/25/big-surs-signed-system-volume-added-security-protection/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2690 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 11:10 · PVG 19:10 · LAX 04:10 · JFK 07:10
    ♥ Do have faith in what you're doing.