| 1 | # |
|---|
| 2 | # /etc/nsswitch.conf |
|---|
| 3 | # |
|---|
| 4 | # An example Name Service Switch config file. This file should be |
|---|
| 5 | # sorted with the most-used services at the beginning. |
|---|
| 6 | # |
|---|
| 7 | # The entry '[NOTFOUND=return]' means that the search for an |
|---|
| 8 | # entry should stop if the search in the previous entry turned |
|---|
| 9 | # up nothing. Note that if the search failed due to some other reason |
|---|
| 10 | # (like no NIS server responding) then the search continues with the |
|---|
| 11 | # next entry. |
|---|
| 12 | # |
|---|
| 13 | # Legal entries are: |
|---|
| 14 | # |
|---|
| 15 | # nisplus or nis+ Use NIS+ (NIS version 3) |
|---|
| 16 | # nis or yp Use NIS (NIS version 2), also called YP |
|---|
| 17 | # dns Use DNS (Domain Name Service) |
|---|
| 18 | # files Use the local files |
|---|
| 19 | # db Use the local database (.db) files |
|---|
| 20 | # compat Use NIS on compat mode |
|---|
| 21 | # hesiod Use Hesiod for user lookups |
|---|
| 22 | # [NOTFOUND=return] Stop searching if not found so far |
|---|
| 23 | # |
|---|
| 24 | |
|---|
| 25 | # To use db, put the "db" in front of "files" for entries you want to be |
|---|
| 26 | # looked up first in the databases |
|---|
| 27 | # |
|---|
| 28 | # Example: |
|---|
| 29 | #passwd: db files nisplus nis |
|---|
| 30 | #shadow: db files nisplus nis |
|---|
| 31 | #group: db files nisplus nis |
|---|
| 32 | |
|---|
| 33 | passwd: files nonlocal |
|---|
| 34 | passwd_nonlocal: ldap |
|---|
| 35 | shadow: files |
|---|
| 36 | group: files nonlocal |
|---|
| 37 | group_nonlocal: ldap |
|---|
| 38 | |
|---|
| 39 | #hosts: db files nisplus nis dns |
|---|
| 40 | hosts: files dns |
|---|
| 41 | |
|---|
| 42 | # Example - obey only what nisplus tells us... |
|---|
| 43 | #services: nisplus [NOTFOUND=return] files |
|---|
| 44 | #networks: nisplus [NOTFOUND=return] files |
|---|
| 45 | #protocols: nisplus [NOTFOUND=return] files |
|---|
| 46 | #rpc: nisplus [NOTFOUND=return] files |
|---|
| 47 | #ethers: nisplus [NOTFOUND=return] files |
|---|
| 48 | #netmasks: nisplus [NOTFOUND=return] files |
|---|
| 49 | |
|---|
| 50 | bootparams: nisplus [NOTFOUND=return] files |
|---|
| 51 | |
|---|
| 52 | ethers: files |
|---|
| 53 | netmasks: files |
|---|
| 54 | networks: files |
|---|
| 55 | protocols: files |
|---|
| 56 | rpc: files |
|---|
| 57 | services: files |
|---|
| 58 | |
|---|
| 59 | netgroup: nisplus |
|---|
| 60 | |
|---|
| 61 | publickey: nisplus |
|---|
| 62 | |
|---|
| 63 | automount: files nisplus |
|---|
| 64 | aliases: files nisplus |
|---|
| 65 | |
|---|