cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not applicable

Enable to run some 'root' task on Mac using 'Requires an Administrator' option

On Mac, I want my application to run as a service (under /Library/StartupItems)

To do that, i need to be administrator so I select 'Requires an Administrator'. Everything works fine : I create files and directories without problem but It failed to start my service (not allowed to run message).

It seems that the job I want to run need more than root privilege ?

I also try to run a simple bash script without succes.

Actually, the only solution I have is to ask the user to restart his mac 😞
Any good idea welcome.

thx
guillaume
Labels (1)
0 Kudos

(2) Replies
dgunthor
Level 3

it won't start the service until you reboot

you can start it manually by running a shell script though
0 Kudos
Not applicable

hi dgunthor,

>you can start it manually by running a shell script though

yes... but how ?
The end-user must run a shell script in sudo mode once the installation is complete ?

guillaume
0 Kudos