|
Siddhesh Poyarekar |
17b00fb |
#
|
|
Siddhesh Poyarekar |
17b00fb |
# /etc/nsswitch.conf
|
|
Siddhesh Poyarekar |
17b00fb |
#
|
|
Siddhesh Poyarekar |
17b00fb |
# An example Name Service Switch config file. This file should be
|
|
Siddhesh Poyarekar |
17b00fb |
# sorted with the most-used services at the beginning.
|
|
Siddhesh Poyarekar |
17b00fb |
#
|
|
Siddhesh Poyarekar |
17b00fb |
# The entry '[NOTFOUND=return]' means that the search for an
|
|
Siddhesh Poyarekar |
17b00fb |
# entry should stop if the search in the previous entry turned
|
|
Siddhesh Poyarekar |
17b00fb |
# up nothing. Note that if the search failed due to some other reason
|
|
Siddhesh Poyarekar |
17b00fb |
# (like no NIS server responding) then the search continues with the
|
|
Siddhesh Poyarekar |
17b00fb |
# next entry.
|
|
Siddhesh Poyarekar |
17b00fb |
#
|
|
Siddhesh Poyarekar |
17b00fb |
# Valid entries include:
|
|
Siddhesh Poyarekar |
17b00fb |
#
|
|
Siddhesh Poyarekar |
17b00fb |
# nisplus Use NIS+ (NIS version 3)
|
|
Siddhesh Poyarekar |
17b00fb |
# nis Use NIS (NIS version 2), also called YP
|
|
Siddhesh Poyarekar |
17b00fb |
# dns Use DNS (Domain Name Service)
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# files Use the local files in /etc
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# db Use the pre-processed /var/db files
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# compat Use /etc files plus *_compat pseudo-databases
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# hesiod Use Hesiod (DNS) for user lookups
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# sss Use sssd (System Security Services Daemon)
|
|
Siddhesh Poyarekar |
17b00fb |
# [NOTFOUND=return] Stop searching if not found so far
|
|
Siddhesh Poyarekar |
17b00fb |
#
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# 'sssd' performs its own 'files'-based caching, so it should
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# generally come before 'files'.
|
|
![](https://seccdn.libravatar.org/avatar/3d3220bb1339ba0a0466a7ce2d25cfd4a3b41ccb7b4ec282beb086e60ae5502b?s=16&d=retro) |
82a9734 |
#
|
|
![](https://seccdn.libravatar.org/avatar/3d3220bb1339ba0a0466a7ce2d25cfd4a3b41ccb7b4ec282beb086e60ae5502b?s=16&d=retro) |
82a9734 |
# WARNING: Running nscd with a secondary caching service like sssd may lead to
|
|
![](https://seccdn.libravatar.org/avatar/3d3220bb1339ba0a0466a7ce2d25cfd4a3b41ccb7b4ec282beb086e60ae5502b?s=16&d=retro) |
82a9734 |
# unexpected behaviour, especially with how long entries are cached.
|
|
Siddhesh Poyarekar |
17b00fb |
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# To use 'db', install the nss_db package, and put the 'db' in front
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# of 'files' for entries you want to be looked up first in the
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# databases, like this:
|
|
Siddhesh Poyarekar |
17b00fb |
#
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# passwd: db files
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# shadow: db files
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
# group: db files
|
|
Siddhesh Poyarekar |
17b00fb |
|
|
![](https://seccdn.libravatar.org/avatar/a5bc92edbb0f563f883668fa907bc13a66252f750f56180d42933cbee368ad2d?s=16&d=retro) |
305fa9f |
passwd: sss files
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
6776785 |
shadow: files sss
|
|
![](https://seccdn.libravatar.org/avatar/a5bc92edbb0f563f883668fa907bc13a66252f750f56180d42933cbee368ad2d?s=16&d=retro) |
305fa9f |
group: sss files
|
|
Siddhesh Poyarekar |
17b00fb |
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
hosts: files dns myhostname
|
|
Siddhesh Poyarekar |
17b00fb |
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
bootparams: files
|
|
Siddhesh Poyarekar |
17b00fb |
|
|
Siddhesh Poyarekar |
17b00fb |
ethers: files
|
|
Siddhesh Poyarekar |
17b00fb |
netmasks: files
|
|
Siddhesh Poyarekar |
17b00fb |
networks: files
|
|
Siddhesh Poyarekar |
17b00fb |
protocols: files
|
|
Siddhesh Poyarekar |
17b00fb |
rpc: files
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
6776785 |
services: files sss
|
|
Siddhesh Poyarekar |
17b00fb |
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
netgroup: sss
|
|
Siddhesh Poyarekar |
17b00fb |
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
publickey: files
|
|
Siddhesh Poyarekar |
17b00fb |
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
automount: files sss
|
|
![](https://seccdn.libravatar.org/avatar/3a472f8ae167e3d9ad669220b1e8ed6d98f2576fa0461d58f9444841c8e3b2f5?s=16&d=retro) |
a747c09 |
aliases: files
|