Thanks, but i’m 100% running this as root – there is some other strange setting nomachine has set (some SIP related thing?) that makes the files inaccessible even as root.
Here’s the result of your command, you can see i’m running as root. I don’t have this problem with any other app, only NoMachine – my friends who also have NoMachine installed on mac get the same issue.
/Applications/NoMachine.app/Contents/Frameworks/etc ยป sudo sed -i ” -e ‘s/^AcceptedAuthenticationMethods.*/AcceptedAuthenticationMethods NX-private-keytest/’ “/Applications/NoMachine.app/Contents/Frameworks/etc/server.cfg”
Password:
sed: /Applications/NoMachine.app/Contents/Frameworks/etc/server.cfg: Operation not permitted