The nsswitch.conf File
The nsswitch.conf File
Next: Shadow Passwords with NIS Up: NIS NIS+ Previous: NIS Maps
The nsswitch.conf File
The Network Services switch file /etc/nsswitch.conf determines the order of lookups performed when a certain piece of information is requested, just like the /etc/host.conf file which determines the way host lookups are performed.
For example, the line
hosts: files nis dnsspecifies that host lookup functions should first look in the local /etc/hosts file, followed by a NIS lookup and finally through the domain name service (/etc/resolv.conf and named), at which point if no match is found an error is returned. This file must be readable for every user!
Subsections
2005-05-04