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

Re[2]: Bootstrap then launch with administrative rights

by nik.thirtynine :: Rate this Message:

Reply to Author | View in Thread

Hello Julien,

Monday, December 8, 2008, 8:53:51 AM, you wrote:

>> It works on XP but there is a pitfall. A dialog will be display where
>> you can choose which user account should be used to start the
>> application. Additionally there is a checkbox where you can whether
>> your computer and data should be protected from unauthorised program
>> activity. This is tciked on by default and if it is kept ticked on
>> then the installer runs into problems installing into the common
>> C:\Program Files folder. I am not sure if this a problem in just my
>> system - maybe someone else could try this out and give this a try.

> If you have a better solution for XP then please share it  

Unfortunately, I do not have a better solution, otherwise I would had
proposed it :-( I just wanted to point out this possible pitfall.


>> This is very nice   However there is again a limitation: It seems
>> like your tiny app does not work correctly with shell scripts. So
>> any shell scripts do not inherit the privileges. This explcitly
>> covers the case where you tell the installer to start shell script
>> as postinstall (<executable>). This script will not run with the
>> elevated rights. Would there be any way how to make scripts run
>> with elevated rights as well?

> See the attached screenshot: I have inserted a call to whoami in
> ProcessPanel and the scripts are called as root.

Well, obviously then I am doing something wrong. I tried it with a
simple shell script (using the #!/bin/bash she-bang) and it doesn't
work.

Can you try this very simple two-liner?

#!/bin/bash
touch /usr/local/lib/test
ls /usr/local/lib/test

If it works, can you detail out how you achieved this?


>> I would suggest to add the option to make this OS-dependent. For
>> example my installer does not need to have privileged rights on
>> Windows but needs privileged rights for OSX (missing libraries which
>> need to be installed). This is currently not possible.

> Agreed. Let's keep it in mind for the next release.

Sounds good.

Keep up the good work :)



--
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