FROM : Nick Zitzmann
DATE : Wed Dec 15 20:20:20 2004
On Dec 15, 2004, at 12:57 PM, <email_removed> wrote:
> I've seeen several examples of how to run a commad line tool as root
> and
> the information is pretty clear but the problem is I need to gain root
> access for the application Im building. It basically needs to be able
> to
> remove several files in /Library so I need the application to get
> authorized after it has executed, and the user chooses a given
> function.
> Does any one know of examples, or would some one be able to help with
> this?
That's not possible since you can't elevate the privileges of a running
task. Instead, you'll need to launch a helper app using the
authorization services functions that performs the task that requires
higher privileges.
Nick Zitzmann
<http://www.chronosnet.com/>
DATE : Wed Dec 15 20:20:20 2004
On Dec 15, 2004, at 12:57 PM, <email_removed> wrote:
> I've seeen several examples of how to run a commad line tool as root
> and
> the information is pretty clear but the problem is I need to gain root
> access for the application Im building. It basically needs to be able
> to
> remove several files in /Library so I need the application to get
> authorized after it has executed, and the user chooses a given
> function.
> Does any one know of examples, or would some one be able to help with
> this?
That's not possible since you can't elevate the privileges of a running
task. Instead, you'll need to launch a helper app using the
authorization services functions that performs the task that requires
higher privileges.
Nick Zitzmann
<http://www.chronosnet.com/>






Cocoa mail archive

