Bug 456 - NOPASSWD: doesn't work for individual users
NOPASSWD: doesn't work for individual users
Status: RESOLVED WORKSFORME
Product: Sudo
Classification: Unclassified
Component: Sudo
1.7.4
IBM AIX
: normal normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-15 09:16 MST by Jan Oldrup
Modified: 2011-08-24 10:20 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.