June 2017
Intermediate to advanced
478 pages
13h 14m
English
glibc uses a mechanism known as the name service switch (NSS) to control the way that names are resolved to numbers for networking and users. Usernames, for example, maybe resolved to UIDs via the file /etc/passwd, and network services such as HTTP can be resolved to the service port number via /etc/services. All this is configured by /etc/nsswitch.conf; see the manual page, nss(5), for full details. Here is a simple example that will suffice for most embedded Linux implementations:
passwd: filesgroup: filesshadow: fileshosts: files dnsnetworks: filesprotocols: filesservices: files
Everything is resolved by the correspondingly named file in /etc, except for the host names, which may additionally be resolved ...
Read now
Unlock full access