T
T
Trrrrr2015-06-15 16:26:32
Objective-C
Trrrrr, 2015-06-15 16:26:32

How to make an application run as root in OS X?

The essence of the question is that I need to run the application as root.
How I did it under Windows:
1) During installation, the service was also installed and started.
2) When the application is launched (under the user), it sends a command to the service and the service restarts it, but with admin rights.
Now, actually, I need to do the same under the macOS as easy as possible.
What is the easiest way to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Rytikov, 2015-06-15
@chlp

In my opinion, daemons are not allowed to run applications from the UI, transferring root rights and the user will have to enter a login / password. Maybe, like here nonsenseinbasic.blogspot.ru/2013/03/mac-os-x-progr...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question