Answer the question
In order to leave comments, you need to log in
How to run commands with admin rights on Linux startup?
Good day!
You need to run a couple of programs at startup, but they only run as administrator. How to make it so that the command to run as administrator is executed at system startup?
Answer the question
In order to leave comments, you need to log in
The best way is to create a systemd unit with Type=simple.
A bonus is convenient logging and management.
Example at the link:
https://www.devdungeon.com/content/creating-system...
I would add commands to the /etc/rc.local file, in which the commands are executed every time the system boots (line by line)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question