Bug 478

Summary: sudo -n prompts for a password
Product: Sudo Reporter: tuxce.net
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.8.0   
Hardware: PC   
OS: Linux   
Attachments: Patch to fix non-interactive mode in sudo 1.8.0 with sudoers plugin

Description tuxce.net 2011-03-06 09:27:22 MST
When a user is not listed in sudoers, "sudo -n" prompts for a password.

tuxce ~  $ sudo -k; sudo -nl

User tuxce may run the following commands on this host:
    (ALL) ALL
    (ALL) NOPASSWD: /usr/bin/hidd


And with another user:
test ~  $ sudo -k; sudo -nl
Mot de passe : 
Sorry, user test may not run sudo on cfuzp.
Comment 1 Todd C. Miller 2011-03-06 15:37:50 MST
Created attachment 308 [details]
Patch to fix non-interactive mode in sudo 1.8.0 with sudoers plugin

The attached patch fixes the problem.
Comment 2 Todd C. Miller 2011-03-22 09:47:24 MDT
This is fixed in 1.8.1 which is currently in beta test, see
http://www.sudo.ws/sudo/devel.html
Comment 3 Todd C. Miller 2011-04-11 08:04:09 MDT
Fixed in sudo 1.8.1