Usig previous sudo : $ sudo -n /bin/ls sudo: sorry, a password is required to run sudo on the new one : $ sudo -n /bin/ls [sudo] password for misc: this break iurt, who check for sudo usage using -n option. Reproducible: Steps to Reproduce:
$ rpm -qa sudo sudo-1.8.0-1.mga1 It's strange that there is nothing in sudo's changelog about this change in sudo -n behaviour. http://www.sudo.ws/sudo/current.html Extract : Major changes between version 1.6.9p19 and 1.7.0: A new -n flag is available which may be used to indicate that sudo should not prompt the user for a password and, instead, exit with an error if authentication is required. http://www.sudo.ws/sudo/changes.html 2008-03-18 Add -n (non-interactive) flag.
CC: (none) => yleny
Ok, after debugging and writing a patch ( and testing it ), I found it was already corrected upstream : http://www.sudo.ws/repos/sudo/rev/172f29597bd2 We can either wait on sudo 1.8.1 , or backport the patch ( attached )
Created attachment 155 [details] Patch from upstream to fix the issue
Patch applied on cauldron.
Status: NEW => RESOLVEDCC: (none) => dmorganecResolution: (none) => FIXED