run application with root privileges when a user run the application RRS feed

  • Question

  • User304418 posted

    is there a way to prompt the user/pass and get file access etc.. i need to write files and create launch daemon but i need root privileges for doing it

    Monday, March 13, 2017 5:39 PM

All replies

  • User35201 posted

    I believe SMJobBless is the "preferred way":


    but i hear the API is a beast and I know of no samples.

    This old post might be helpful:


    This might be useful as well:


    If you get something working, please feel free to post. I've never personally dug into this, and I'd like to know. :)

    Monday, March 13, 2017 6:22 PM