Skip to main content
Topic: Specifying executable name in sudoers in order to pass password (Read 296 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Specifying executable name in sudoers in order to pass password

Why has put an executable name in sudoer, but run it still get asked password ?

this is what is edited after by way of $ sudo visudo (user name illustrative)
Code: [Select]
foobar ALL=(ALL) NOPASSWD: /usr/bin/lsblk
.
Code: [Select]
$ ls -l /usr/bin/lsblk
 -rwxr-xr-x 1 root root 137168 Jun 27 21:32 /usr/bin/lsblk


but still ask password, how to correct it?

Re: Specifying executable name in sudoer in order to pass password

Reply #1
I don't know if your syntax is correct, But I'm sure the following one is correct
Code: [Select]
foobar ALL=(ALL:ALL) NOPASSWD: /usr/bin/lsblk

 
Artix forum uses a single cookie to remember youOK