I want a script X.sh to switch users and perform an action, but so far I have this:
 #!/bin/sh
 sudo su partner -s /bin/bash 
 supervisord -c ~/supervisord.conf
exit
I want that the user partner execute supervisord and exit, but all I get is a switched user in the comand line a bash shell, doing the su partner -s /bin/bash is the only way in which I can access the partner user.
Please Help
 
     
    