I would like to be able to launch a script in a separate screen command session as a separate user when I run a .sh script.
Here is what I think it may be in the script:
#I am also starting xampp here, as that is what runs the webserver on this server sudo /opt/lampp/lampp start screen sudo -u minecraft /home/minecraft/mc1/rtoolkit.sh screen sudo -u minecraft /home/minecraft/mc2/rtoolkit.sh
As you can see, in this script there are several instances of 'sudo'. Sudo requires that I input a password, I am planning on making this script automatically run when the server starts up. The other issue is that screen may have a login prompt.
More information: Operating system: Ubuntu server 12.04 LTS