Comman line application with administrator right
Hi all,
I'm a newbie in Mac OS application development. I'm developing an command line application that has some actions require administrator right. So my question is that I want to detect current user, if current user don't have administrator right I will required them input administrator name and password. After that my app run normally under administrator right. So how can i do this? Please help!
Thanks.
P/S: Sorry for my English.
|