I need to create one script that will require me to execute separate scripts as other users.
execute script 1 as user1
execute script 2 as user2
execute script 3 as user3
This script starts services that need to be ran as a particular user.
How do you execute a script as a different user within a script? I imagine Ill have to add credentials or setup RSA?