Bug 478 - sudo -n prompts for a password
sudo -n prompts for a password
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.8.0
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-06 09:27 MST by tuxce.net
Modified: 2011-04-11 08:04 MDT (History)
0 users

See Also:


Attachments
Patch to fix non-interactive mode in sudo 1.8.0 with sudoers plugin (535 bytes, patch)
2011-03-06 15:37 MST, Todd C. Miller
Details | Diff

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