[sudo-users] all users / no passwd
Todd C. Miller
Todd.Miller at courtesan.com
Fri Apr 11 13:22:44 EDT 2008
In message <W2922828482265381207929335 at webmail30>
so spake (tony.chamberlain):
> I want to add something to the sudoers file like this (and I know this is not
> the right syntax):
> allusers /usr/bin/myspecialcommand NOPASSWD: ALL
> but I can't figure out the syntax.
> That is, all users can execute it without giving a password (but only
> this command).
> What is the correct syntax?
Well, you could do:
ALL ALL = NOPASSWD: /usr/bin/myspecialcommand
to allow any user on any host to run /usr/bin/myspecialcommand
without a password. The first "ALL" corresponds to the user, the
second "ALL" to the host.
More information about the sudo-users