View Single Post
ejasmudar's Avatar
Posts: 800 | Thanked: 957 times | Joined on Sep 2010 @ India
#16
OK, i have finally figured out how to run some of scripts as root, when started by user.
I have a bunch of 5 scripts, with a main script acting as the menu or gateway. The main script is launched normally via an icon as
Code:
sh parentscript.sh
in that script, it calls the other scripts as
Code:
sudo run-standalone.sh sh childscript1.sh
This methodology seems to be working for me. But one the users of this app is having a problem that xterm is asking for password on execution of sudo run-standalon.sh.

Can anybody help us?
__________________
My Device History:Nokia 3510 > SE T230 > Nokia 6600 > HP2210 > SE p910i > SE p990i > N95 > I-mate 9502 > itouch > Nokia N900 > ? N9
My apps for N900:
Conversation Modder

My apps for N9:
LockScreenQuotes
USbS


If you feel I have helped you, don't forget to press Thanks!