I need to start a script and a binary file from
/usr/bin at startup with sudo/root privileges. I've tried many guides from this forum but nothing worked (
systemd style, Upstart) – maybe I'm doing something wrong. My OS is Ubuntu GNOME 16.10.
The script would be something like this
#!/bin/bash sudo ./usr/bin/myprogram sudo bash /home/USER/script.bash
Both the script and the program are executable. I just don't know the optimal way to start them with sudo at startup.
Please be gentle. I'm a new user.