There's a NOPASSWD option.
When modifying the sudoers with nopasswd, be certain you
* don't lock yourself out
* only impact the exact command you want to impact
* restrict the options to only those which are actually desired, not every possible option
* only impact a single userid, not all of them
In general, setting up nopasswd with a script that isn't owned and protected by root is considered poor security. The script needs to be in /root/bin/ , IMHO.
As to how to make it work with a mouse, I wouldn't know.
The sudoers manpage is a work of art, IMHO.
Code:
...
PASSWD and NOPASSWD
By default, sudo requires that a user authenticate him or herself
before running a command. This behavior can be modified via the
NOPASSWD tag. Like a Runas_Spec, the NOPASSWD tag sets a default for
the commands that follow it in the Cmnd_Spec_List. Conversely, the
PASSWD tag can be used to reverse things. For example:
ray rushmore = NOPASSWD: /bin/kill, /bin/ls, /usr/bin/lprm
....
Bookmarks