13 June 2010

Run hamachi's tuncfg without being asked for sudo password

It is pretty simple to run tuncfg (required by hamachi) as an ordinary user, and without being asked for password.
Note: I use Ubuntu (9.10 at the moment)

Run in terminal:
sudo visudo

and then append this line:
your-username ALL = NOPASSWD: /sbin/tuncfg

After this you can start tuncfg like this:
sudo tuncfg
and no password prompt will pop-up :)

You should NOT do this if you are worried about security. It is a POTENTIAL security risk.

No comments: