[sudo-users] NOPASSWD usage, but getting prompted for password
Todd C. Miller
Todd.Miller at courtesan.com
Wed Jun 8 16:54:31 EDT 2005
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.
- todd
More information about the sudo-users
mailing list