Bug 456

Summary: NOPASSWD: doesn't work for individual users
Product: Sudo Reporter: Jan Oldrup <oldrup>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: normal    
Version: 1.7.4   
Hardware: IBM   
OS: AIX   

Description Jan Oldrup 2010-12-15 09:16:30 MST
Hi
Since I have upgraded sudo from version 1.7.2.4 to version 1.7.4.4, I can not get the NOPASSWD tag to funktion on individuel users:

This work without password-prompt:
harvest     ALL=(ALL) NOPASSWD:   <command>

This requires a password:
This work without password-prompt:
harvest      ALL=(test-user) NOPASSWD:    <command>

I am running AIX 5300-11-02-1007

I use this in an application, which have to switch user, and then we use the NOPASSWD: tag.

Best regards
Jan Oldrup
Comment 1 Todd C. Miller 2011-01-28 16:21:46 MST
I've been unable to replicate this problem.  Are you running "sudo -u test-user <command>" or just "sudo <command>" ?  If you leave out the -u I would expect sudo to prompt for a password and then give a permission denied error.