Hide Forgot
Description of problem: Using sudo on rhel7.2 with NIS/ypbind hangs after password is entered. We use NIS, on rhel6.8 servers, to supply password login info and kerberos for authentication. Putting an entry in the local /etc/passwd, (no shadow entry), fixes the issue. Using tcpdump it appears sudo is requesting nis info from the server over and over but hangs. Red Hat 5,6 Ubuntu 12.04, 14.04 and 16.04 work fine. Turning sudo Debug on does not log anything. No clues in /var/log/secure or messages logs. Version-Release number of selected component (if applicable): Sudo version 1.8.6p7 How reproducible: Always Steps to Reproduce: 1. try to do sudo command 2. 3. Actual results: sudo not to hang Expected results: sudo hangs Additional info: Here is the /etc/nsswitch.conf config, nothing fancy: passwd: files nis shadow: files group: files nis
I got debugging working by setting: Debug sudo /var/log/sudo_debug all@debug Debug sudoers.so /var/log/sudo_debug all@debug Instead of the default all@warn. I do no see any clues in the debug log. I attached the debug output log. I also copied over the sudo executable from rhel 6.8 and tried it, it also hung.
Created attachment 1214734 [details] sudo debug output Debug output from single sudo session that hangs.
One more item, if I enter an incorrect passwd sudo does not hang and comes back to enter the passwd again. So it appears it is not hanging on authentication to the kerberos that we use.
I updated to RHEL 7.3 and sudo now works. This bug can be closed.
(In reply to John Sopko from comment #5) > I updated to RHEL 7.3 and sudo now works. This bug can be closed. Thanks for the info. Closing.