How to configure my application to always run as OSX root

advertisements

I am developing an OSX application that some features of it requires ROOT privileges I figured out how to debug my app as root (simply in schemes).

But I want users to run it as Root so they will have access to its features.

How can I do this??


Do not run desktop applications as root. The Mac OS X frameworks are not intended to be used this way, and undesirable behavior will result (e.g, files/folders owned by root in the user's Library; process not responsive to "force quit"; potential security vulnerabilities).

Use Authorization Services to run specific, limited privileged operations as root.