Tagged Questions
1
vote
1answer
491 views
Run expect inside a bash script as another user
I am writing a bash script to install some small software I'm developing. That script is run with sudo (as root), but some of the commands that are executed by the script need (or should be) run with ...
3
votes
2answers
4k views
su options - running command as another user
I was wondering how to run a command as another user from a script.
I have the script's owner set as root. I also have the following command being run within the script to run the command as the ...