I have a script that is run by root and looks like this
curl -O some stuff
mv it to user guest directory
su - guest -c sh /home/guest/script.sh
Everything works fine until the last su command. It gives me the error
sh: cannot set terminal process group (-1): inappropriate ioctl for device
sh: no job control in this shell
How can I make the user guest execute the script.sh using su?