I have the following situation: I am running an install (jar, made via
izpack), on Linux and Mac OS X, and at postinstall stage, I have to run a
bash script file. The problem is that the install runs as non-privileged
(should not be run as root), but the script requires privileged access (the
script contains 1 line of code which has to be run as root).
I cannot run my installer from command line (so at to use 'sudo java -jar')
and adding sudo to the line of code in the script file, I will not be asked
for root credentials on Mac OS X, at postinstall stage.
Also, I cannot use <run-privileged/> for the installer, as I cannot run
installer as root; and using <run-privileged/> in this situation only fixed
the "run script as privileged user" scenario only on Linux, on Mac it is
still not run as root during install (i.e. postinstall stage).
I have been searching for an answer for several days and have not found a
solution yet.
Any help is appreciated.
Regards,
Andrei
--
View this message in context: http://old.nabble.com/Running-a-shell-script-with-root-privileges-during-an-non-privileged-install-process-tp33121262p33121262.html
Sent from the izpack - users @ codehaus mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email