102-500 practice question 15 of 30
What is the purpose of the nsswitch.conf file?
Full set: 233 questionsThe Name Service Switch (NSS) configuration file, /etc/nsswitch.conf, dictates the sources and the order in which to query them for various system databases. The C library functions, such as gethostbyname() or getpwnam(), use this file to determine where to look for information like hostnames, user accounts, passwords, and groups. Common sources include local files (files), DNS (dns), and network information services (nis). This allows for flexible and centralized system administration.
B. Network protocol port numbers and their associated services are defined in the /etc/services file, not nsswitch.conf.
C. While nsswitch.conf can specify LDAP as a source for user data, the actual configuration of the LDAP client is done elsewhere (e.g., /etc/ldap.conf).
D. The system's init process (like systemd) manages which services start at boot, based on its own configuration (e.g., systemd unit files).
- Linux man page for nsswitch.conf(5). The DESCRIPTION section states, "The Name Service Switch (NSS) configuration file, /etc/nsswitch.conf, is used by the GNU C Library to determine the sources from which to obtain name-service information..."
- GNU C Library Reference Manual, Chapter 29, "Name Service Switch". Section 29.1, "The Name Service Switch File", describes its function and format for configuring lookups for different databases.
- Debian 11 Administration Guide, Chapter 5. Network setup, Section 5.7. Name Resolution. This section explains the role of /etc/nsswitch.conf in resolving hostnames.
Keep practicing
Take the free 102-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 102-500 practice questions
- Question 1What output is produced by the following command sequence? echo ‘1 2 3 4 5 6’ | while rea…
- Question 2Which command will set the local machine's timezone to UTC?
- Question 3Which of the following SQL statements will select the fields name and address from the co…
- Question 4Which of the following commands can remove a user from a group?
- Question 5Where are user specific crontabs stored?
- Question 6Which of the following crontab entries will execute myscript at 30 minutes past every hou…
