If you run

*sudo visudo*

The add the following to the end.

debian ALL=(ALL) NOPASSWD: /path/to/command/to/start.sh


you can use *sudo* without giving a password.  I think then your ExecStart 
can be

ExecStart=sudo /usr/bin/scriptname.s


--Mark

On Wednesday, May 22, 2019 at 7:41:04 AM UTC-4, Destroy wrote:
>
> Hello,
> I must to launch an application at startup with root privileges, I have 
> found this
>
> https://stackoverflow.com/questions/28854705/executing-a-script-on-startup-using-beaglebone-black
> it work but without the privileges.
> How can I resolve?
>
> Thank you in advance.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/0fb70e94-efab-47d9-a709-32879c20f11e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to