Well if you want to run a script as diferent user you should try to run with su comand.
If you will run like this
su - x -c "/path/script.sh"
after the script is run the su comand return at your user.
Well if you want to run a script as diferent user you should try to run with su comand.
If you will run like this
su - x -c "/path/script.sh"
after the script is run the su comand return at your user.
Powered by WordPress