Bugzilla – Bug 678
FQDN for hostname does not work anymore
Last modified: 2015-02-09 15:11:48 MST
Created attachment 436 [details] Minimal sudoers file for reproducing the issue As of version 1.8.8, when specifying hosts with their FQDN, running commands with sudo does not work anymore on those hosts. When using just the host name in the host specification, sudo works as intended. The fqdn option has no effect on this problem. To give practical example, with the attached minimal sudoers file with one FQDN and one host name entry, $ sudo -l only lists /bin/false, and not both /bin/true and /bin/false. This has been first observed with sudo 1.8.8 Beta3 in Debian. The previous version 1.8.7, tested on the exact same system with no other changes, worked fine. The issue was tested with up to version 1.8.11p1 and it was still present there. Help in this matter would be greatly appreciated! For reference, the Debian bug can be found here: https://bugs.debian.org/731583
When the remote host support was added to sudoers evaluation the code that sets the fqdn was not updated to match.
Created attachment 437 [details] Patch to updated runhost in set_fqdn
Damn, that was fast. Tested with 1.8.11p2 and I can confirm that this resolve the issue. Thanks!
Excellent. The fix will be in sudo 1.8.12, currently in beta.
Fixed in sudo 1.8.12, available now.