Red Hat Bugzilla – Bug 151350
Slow portmap startup with "passwd: nis files"
Last modified: 2011-12-08 10:39:44 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.6) Gecko/20050226 Firefox/1.0.1
Description of problem:
The portmapper service startup phase lasts "forever" if you use NIS, and give the nis map priority for passwd lookups.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set up the system to use NIS... (But maybe you'll be able to reproduce the
problem even without a valid NIS conif.)
2. In /etc/nsswitch.conf, change the line starting with "passwd" to
passwd: nis files
Actual Results: The system waits a *long* time on the step
Expected Results: Normal boot
I'm filing this against RHEL 4, but it's actually a problem that has occurred on all Red Hat (and Fedora) releases since about as long as I can remember.
If I reboot the dirty way, i.e. just press the reset button instead of doing a proper shutdown, the problem does not occur.
We've been using "nis files" partly because it seems like the "compat" behaviour isn't really quite compatible with the traditional NIS/YP one, but that's probably a separate issue.
Is this still a problem?
We have actually started to use "compat files" instead (you may also wish to
note that "compat" alone doesn't work as expected) in order to get around this
problem, but it's still there.