Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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.
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.