running script as different owner

We need to let out test team start/stop some of the billing engines which require being ran as the owner: appadm yet we don't want to give them the password.

Is there a command like sudo or su that will allow this, i.e. giving them the ability to only run a script that will start/stop a set of process as the owner: tbmsadm

( Is there a way to feed su the password from within a shell script )

THANKS

Some OS's allow you to use the SUID bit on a script - it isn't recommended but it will do the job. If the script is owned by fooadm and chmod'd 4755 then it will run as if executed by the owner.

You could look into expect for providing the password to su, or yes, sudo is a good option.

Cheers
ZB