Red Hat Bugzilla – Bug 19020
RFE: nsswitch.conf does not correspond to a declared configuration
Last modified: 2007-04-18 12:29:19 EDT
A default '/etc/nsswitch.conf' has all these NIS entries even if
during an installation it was specified that NIS will be not used.
Assorted problems with networking can be traced to that - at least
in some configurations.
Hmmm ... here are the entries from a minimal install (no NIS). Which entries
cause problems for which configurations?
passwd: files nisplus nis
shadow: files nisplus nis
group: files nisplus nis
hosts: files nisplus nis dns
bootparams: nisplus [NOTFOUND=return] files
protocols: files nisplus nis
services: files nisplus nis
netgroup: files nisplus nis
automount: files nisplus nis
I don't see the harm in this configuration ... if nis is not present, any db
queries should fall back gracefully ...
from another point of view, though, it makes sense to not have the nis option
listed in the file (even if it does no harm!) ... so I will change this to an
enhancement request ... we'll address this in a future release ... thanks for
> if nis is not present, any db queries should fall back gracefully ...
In theory you are right but in practice this does not seem to always happen. :-)
I heard from a number of people where a network was getting really confused
in a presence of those extra entries. You may be right that bugs were elsewhere
and hacking /etc/nsswitch.conf only papers over the real problems. OTOH
this was never really easy to catch in action but editing this configuration
file was usually clearing the troubles.
Any ideas Nalin?
Still awaiting a response,....
No longer, we explicitly specify --disablenis when calling authconfig now if
you're not using NIS which will remove the line from the nsswitch.conf