Can someone give me an example of how to execute commands as a different user
and then other commands as root through a single script.
I was trying something like:
su - diffUser
...execute command as diffuser
...somehow exit subshell
then su to another user and execute commands
and finally return to parent shell and finish script.
I was trying to get all of these commands in a single script for easy
Sent via Deja.com