« Return to Thread: Re: Bootstrap then launch with administrative rights

Re[4]: Bootstrap then launch with administrative rights

by nik.thirtynine :: Rate this Message:

Reply to Author | View in Thread

Hello Julien,

Monday, December 15, 2008, 2:27:43 PM, you wrote:

> Hi Nik,

> I have tested on OS X and the permissions are indeed not propagated to
> the elevated process subprocesses. What's funny is that ProcessPanel
> seems to properly propagate them. I am not sure whether this is a bug
> or a feature....

okay, I have found a workaround. What I am doing is basically I am
starting a shell script by iZPack with normal user rights postinstall.
This shell script calls an Apple Script which calls another shell
script (actually it is the same shell script just with different
parameters), and this Apple Script asks for user elevation. The shell
script runs then as root. Works like a charm.

Is there any interest about how the shell script and the Apple Script
looks like? Maybe this can be handy for some iZPack scripts?

Regards,


Nik

--
Best regards,
 nik.thirtynine                            mailto:nik.thirtynine


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Re: Bootstrap then launch with administrative rights