[sudo-users] problem with NOPASSWD and specific commands
seph at directionless.org
Wed Mar 16 17:14:16 EDT 2011
Bingo. I was assuming I could test that sudo worked before installing
monit, but I guess not.
"Todd C. Miller" <Todd.Miller at courtesan.com> writes:
> On Wed, 16 Mar 2011 12:36:09 EDT, seph wrote:
>> I'd like to give several users permission to run a command as root,
>> without being prompted for their password. I've done this before, and
>> I'm not sure why I'm having trouble. But maybe one of you can see what
>> I'm missing.
>> Running on ubuntu 10.04 LTS, sudo version 1.7.2p1-1ubuntu5.3
>> If I have the line:
>> deploy ALL = (root) NOPASSWD: ALL
>> The deploy user gains permission to run everything as root. But if I
>> have the line:
>> deploy ALL = (root) NOPASSWD: /usr/sbin/monit
>> My deploy user is still prompted for their password:
> Silly question, but does /usr/sbin/monit actually exist? The only
> way I can reproduce this is by trying to run a fully-qualified
> command that doesn't actually exist on the machine I am testing on.
> - todd
More information about the sudo-users