I've tried everything, I've followed and undone every method I've come across on here but nothing works.
I want to run a simple start-up script for an executable upon reboot, and no other time, as a specific user.
For example, I want to run /home/path/to/shscript/start.sh as user "bob"
Cron seems to do nothing. And I'm at a loss as to how to do this.
Ubuntu server version 21.10. Minimal installation.
sudo -u bob -- /pathto/script.sh
. Of course, the script should be readable and executable by bob. – Pablo Bianchi Apr 29 '22 at 04:42