[sudo-users] NOPASSWD usage, but getting prompted for password

zach at splot.org zach at splot.org
Thu Jun 9 13:53:28 EDT 2005


On Wednesday 08 June 2005 03:00 pm, zach at splot.org wrote:
> On Wednesday 08 June 2005 02:54 pm, you wrote:
> > In message <200506081242.08020.zach at splot.org>
> >
> >  so spake  (zach):
> > > I have this config in /etc/sudoers:
> > >
> > > user  ALL = NOPASSWD: /usr/bin/rootscript.sh
> > >
> > > I need this user to be able to execute the script as if they were root,
> > > and without getting prompted for a password.  However, it prompts for a
> > > password.
> > >
> > > Typing sudo -l also asks for a password.
> >
> > Chances are you have a later entry that is overriding the one above.
> > Sudo uses the last match found when parsing the sudoers file.
>
> Good suggestion, but I did already have that as my last line in the sudoers
> file.

One more thing.  I'm having this issue on a Solaris 8 system.  I notice that 
when I do this on my Debian box, it works just fine.



More information about the sudo-users mailing list