man sudoers, search for NOPASSWD.

       NOPASSWD and PASSWD

       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

       would allow the user ray to run /bin/kill, /bin/ls, and
       /usr/bin/lprm as root on the machine rushmore as root
       without authenticating himself.  If we only want ray to be
       able to run /bin/kill without a password the entry would
       be:

        ray    rushmore = NOPASSWD: /bin/kill, PASSWD: /bin/ls, /usr/bin/lprm


wim


On Thu, 6 Jan 100, Goblin wrote:

> Hi guys,
> 
> I am trying to set up user accounts on my machine so that I don't have
> to run as root. I have added several commands to my sudoers list to
> handle things like internet dialup, shutting down the machine etc so
> that these commands can run as root still.
> 
> My problem is that sudo prompts for the user's password before
> performing the command. This is fine for normal command-line stuff,
> but I want to run the commands from the background menu in X. What
> happens is that sudo blocks on input waiting for the password and
> the command is not executed.
> 
> Any suggestions to work around this? I thought of using expect to feed
> the password in, but that means storing the password somewhere, which is
> a bit yuk. I was hoping for some sort of config option to sudo which
> would bypass the check, but I don't see anything in the man pages.
> 
> ------------------------------------------------------------------------------
> goblin

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to