sudoers entries

Posted by Pochi on Server Fault See other posts from Server Fault or by Pochi
Published on 2012-10-18T06:46:25Z Indexed on 2012/10/18 11:03 UTC
Read the original article Hit count: 169

Filed under:
|
|
|

Is there a way to have a sudoers entry that allows executing of only a particular command, without any extra arguments? I can't seem to find a resource that describes how command matching works with sudoers.

Say I want to grant sudo for /path/to/executable arg.

Does an entry like the following:

user ALL=(ALL) /path/to/executable arg

strictly allow sudo access to a command exactly matching that? That is, it doesn't grant user sudo privileges for /path/to/executable arg arg2?

© Server Fault or respective owner

Related posts about linux

Related posts about unix