Click to See Complete Forum and Search --> : need script to run as a different user


fonnerk
05-27-2002, 01:07 AM
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?

Thanks,
Kevin

Whipping Boy
05-27-2002, 12:46 PM
'man su'
and
'man expect'

Specifically, you're interested in su's -c option.