Answer the question
In order to leave comments, you need to log in
How to make a console program always run as sudo and not have to enter a password and write sudo in front of it?
Lubuntu 19 system has a console app that won't run without sudo. How can I make it possible to run an application without the sudo prefix?
Answer the question
In order to leave comments, you need to log in
you add to /etc/sudoers
user ALL=(ALL) NOPASSWD: /bin/apt-get, /sbin/reboot
and the
sudo reboot command
works as root without asking for a password.
https://losst.ru/otklyuchaem-parol-sudo-v-linux
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question