E
E
eegmak2020-04-26 13:32:18
Debian
eegmak, 2020-04-26 13:32:18

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

4 answer(s)
G
galaxy, 2020-04-26
@galaxy

chown root app
chmod u+s app

P
pfg21, 2020-04-26
@pfg21

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

C
CityCat4, 2020-04-27
@CityCat4

alias in .bashrc?

D
Drno, 2020-04-26
@Drno

It seems to me to make a bash script, where to shove the program with an indication to run from which user, well, the password

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question