Suppose I have a user some_user
and command /usr/bin/command
.
How can I execute this command as root by entering /usr/bin/command
, but not sudo /usr/bin/command
?
I tried to edit sudoers
with visudo
, but without success, password is not prompted, but I need to write sudo
:
some_user ALL=(ALL:ALL) NOPASSWD: /usr/bin/command
Is there any difference between above command and www-data ALL=(ALL) NOPASSWD: /usr/bin/kill
?
Thank you.