Re: [expert] need to have a bash script run as a different userautomatically

2002-05-27 Thread kwan
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

Re: [expert] need to have a bash script run as a different userautomatically

2002-05-27 Thread kwan
On Mon, 27 May 2002, Nick Thompson wrote: > What about: > > su - -c > > However, unless the first script is running as root, this will stop to > ask you for a password. > Yes -- unless the account is passwordless. You can probably use expect to get around a passworded account, but since th