What about: su - <user> -c <other_script>
However, unless the first script is running as root, this will stop to ask you for a password. Nick. [EMAIL PROTECTED] wrote: >On Sun, 26 May 2002, Kevin Fonner wrote: > > > >> I have a bash script that get's called from another bash script. How >>can I get the second bash script to run as a different user? >> >> > >You'll have to use a utility such as sudo or else create a c wrapper >script that you can set suid. Doing a chmod +s on a script will not >work. It's politely ignored because of the security problems. > >
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
