I wanted to set up a script that switches users and runs that command as that other user.
so example
sudo su myFavoriteUser && /run/command/as/myFavoriteUser
Any help would be appreciated.
Thanks, Sahr
I wanted to set up a script that switches users and runs that command as that other user.
so example
sudo su myFavoriteUser && /run/command/as/myFavoriteUser
Any help would be appreciated.
Thanks, Sahr
-c
forsu
– unxnut Aug 15 '19 at 17:37