Answer the question
In order to leave comments, you need to log in
How to make it so that any user can run a certain program as root in Ubuntu?
There is a binary that lies along a constant path.
It is required that when this program is launched, it can perform actions with root rights, or rather, change file permissions. How to implement it?
Answer the question
In order to leave comments, you need to log in
chown root /pat/to/bin
chmod +s /path/to/bin
If this is a binary and not a script, then besides sudo there is another option: change the owner of the file to root (chown root path/to/binary) and set the SETUID bit (chmod u+s path/to/binary).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question