Hello Julien,
Monday, December 8, 2008, 8:53:51 AM, you wrote:
>> 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.
I have tried it again by calling a simple testscript and executing it
by using run-with-privileges-on-osx but it does not work!
I tried:
===== console output =====
./run-with-privileges ./test.sh bla
cat ./test.sh
#!/bin/bash
whoami > /tmp/me
cat /tmp/me
nik
===== console output =====
As you can see it does not tell that I am root. Also a
./run-with-privileges /bin/bash ./test.sh
gives the same result. Maybe it has something to do with sub processes
not inheriting the user id. Any ideas?
--
Best regards,
nik.thirtynine mailto:nik.thirtynine
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email