简体   繁体   中英

Change file permission of com.apple.screensharing.plist file on mac

I'm trying to change the file permission of a file.

I have tried chmod 777 on the file and nothing seems to work.

I even tried manually navigating to it and unocking and changing the permissions via the answers here ( chmod unable to change permissions ), I am at a loss for how to change the file permission so I can edit this file to allow screen sharing on a different port...

在此处输入图片说明

For anyone else that has a mac I'm trying to follow the instructions here, https://superuser.com/questions/148095/how-to-change-the-default-screen-sharing-vnc-port-number-on-mac-os-x

sudo vim /System/Library/LaunchDaemons/com.apple.screensharing.plist

This is the path to the file, but I can't edit it no matter what I do. Even as super user!

I found the answer to this, there is a protection on the system file csrutil, you need to disable this by booting up into recovery mode and open the terminal program and run the command csrutil disable .

Make sure to reenable after making the change in recovery mode again!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM