[sudo-users] Password required with option -i !?

Stefan Götz stefan.goetz at cs.rwth-aachen.de
Tue Dec 29 09:09:32 EST 2009


> The problem is that when you run a command with "sudo -i" what sudo
> actually does is run "user_shell -c command".  That is why the
> NOPASSWD flag is not working for you.  If you look in the logs you
> should see the exact command sudo is running.
> 
> If user firefox has /bin/bash as its shell the following should work:
> 
> goetz  ALL = (firefox) NOPASSWD: /bin/bash -c firefox

That's the command being executed so, yes, the above sudoers line does the
trick. Thanks for the quick help!

Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: </pipermail/sudo-users/attachments/20091229/f60ca0f2/attachment.bin>


More information about the sudo-users mailing list