[H-GEN] Problems with sudo config.

David Seikel onefang at gmail.com
Tue Nov 1 19:52:13 EST 2005


On Wed, 2 Nov 2005 10:29:35 +1000 Stephen Thorne
<stephen.thorne at gmail.com> wrote:

> My user account has 'sudo' access, as well as the ability to run
> /sbin/route and /usr/bin/nc as root without being prompted for a
> password (this is because of some scripts I sometimes run without an
> interactive terminal), this is my config:
> 
> root    ALL=(ALL) ALL
> sthorne ALL=(ALL) ALL
> sthorne ALL = NOPASSWD: /sbin/route
> sthorne ALL = NOPASSWD: /usr/bin/nc

That helped.  The correct incantation ended up being -
 
Defaults targetpw
root   ALL=(ALL) ALL
%users ALL=(ALL) ALL
dvs1   ALL=(ALL) ALL
dvs1   ALL= NOPASSWD: cmd1
dvs1   ALL= NOPASSWD: cmd2

I'll experiment with putting the host name back into the incantation
later.

Thanks for your prompt help.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20051102/27ae67ca/attachment.sig>


More information about the General mailing list