I'd like to open a specific macOS application which require root privileges (uid=0 or gid=0) in order to access specific files. However, when trying to run with sudo
directly I get the following error:
sudo /Applications/myApp.app/Contents/MacOS/myApp
Illegal instruction: 4
and if running it indirectly using open
it gets the uid of current user and not root.
any ideas who to do it ?