Bug 19020 - RFE: nsswitch.conf does not correspond to a declared configuration
Summary: RFE: nsswitch.conf does not correspond to a declared configuration
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: anaconda
Version: 7.3
Hardware: alpha
OS: Linux
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Brock Organ
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2000-10-13 04:31 UTC by Michal Jaegermann
Modified: 2007-04-18 16:29 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2001-06-04 17:03:13 UTC

Attachments (Terms of Use)

Description Michal Jaegermann 2000-10-13 04:31:28 UTC
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.


Comment 1 Brock Organ 2000-10-17 14:32:28 UTC
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                                     
ethers:     files                                                               
netmasks:   files                                                               
networks:   files                                                               
protocols:  files nisplus nis                                                   
rpc:        files                                                               
services:   files nisplus nis                                                   
netgroup:   files nisplus nis                                                   
publickey:  nisplus                                                             
automount:  files nisplus nis                                                   
aliases:    files

Comment 2 Brock Organ 2000-10-18 15:40:26 UTC
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
your report!

Comment 3 Michal Jaegermann 2000-10-18 18:12:07 UTC
> 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.

Comment 4 Michael Fulbright 2001-04-11 19:59:47 UTC
Any ideas Nalin?

Comment 5 Phil Copeland 2001-06-04 17:03:08 UTC
Still awaiting a response,....

Comment 6 Jeremy Katz 2001-08-10 03:43:00 UTC
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

Note You need to log in before you can comment on or make changes to this bug.