[sudo-users] NOPASSWD usage, but getting prompted for password
zach at splot.org
zach at splot.org
Wed Jun 8 17:00:34 EDT 2005
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.
More information about the sudo-users
mailing list