Name Service Switch

Name Service Switch

The Name Service Switch (NSS) is a facility in Unix-like operating systems that provides a variety of sources for common configuration databases and name resolution mechanisms. Such source databases include local operating system files, for example, /etc/passwd, /etc/group, and /etc/hosts, the Domain Name System (DNS), the Network Information Service (NIS), LDAP, and others.

Contents

nsswitch.conf

A system administrator usually configures the operating system's name services using the file /etc/nsswitch.conf. This lists databases (such as passwd, shadow and group) and one or more sources for obtaining that information. Examples for sources are files for local files, ldap for the Lightweight Directory Access Protocol, nis for the Network Information Service, nisplus for NIS+, wins for Windows Internet Name Service).

The nsswitch.conf file has line entries for each service consisting of a database name in the first field, terminated by a colon, and a list of possible source databases mechanisms in the second field. An example file is the following:

passwd:     files ldap
shadow:     files
group:      files ldap

hosts:      dns nis files

ethers:     files nis
netmasks:   files nis
networks:   files nis
protocols:  files nis
rpc:        files nis
services:   files nis

automount:  files
aliases:    files

The order of the services listed determines in which order NSS will attempt to use those services to resolve queries on the specified database.

Implementation

The service switch facility is implemented within the C library, so that calls to functions such as getent resolve to the appropriate NSS module. This assures that existing applications that use the NSS routines do not require any changes to operate with NSS.

History

Earlier Unix-like systems, with the notable exception of Ultrix, either accessed only the configuration files or had hard-coded rules for files or databases to access; Ultrix offered nearly identical functionality to the Name Service Switch, using the configuration file /etc/svc.conf.

Sun Microsystems first developed NSS for their Solaris operating system, but subsequently programmers ported it to many other operating systems including FreeBSD, NetBSD, GNU/Linux, HP-UX, IRIX and AIX.

See also

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Name Service Switch — Le Name Service Switch (NSS) autorise le remplacement des traditionnels fichiers Unix de configuration (par exemple /etc/passwd, /etc/group, /etc/hosts) par une ou plusieurs bases de données centralisées, les mécanismes utilisés pour accéder à… …   Wikipédia en Français

  • Name Service Switch — El Name Service Switch o NSS provee una interfaz para configurar y acceder a diferentes bases de datos de cuentas de usuarios y claves como /etc/passwd, /etc/group, /etc/hosts, LDAP, etc. Contenido 1 nsswitch.conf 2 NSS y Biblioteca estándar C 3… …   Wikipedia Español

  • Name Service Switch — In unixartigen Betriebssystemen erlaubt der Name Service Switch (NSS) die Konfiguration verschiedener Datenquellen für das Auflösen von Konfigurationsdaten (u.a. Hosts, Benutzer und Gruppen). Es ist möglich die lokalen Konfigurationsdateien (zum… …   Deutsch Wikipedia

  • Name service caching daemon — Der name service caching daemon, kurz nscd, ist ein Daemon in verschiedenen Unixen, u.a. Linux und Solaris, dessen Aufgabe darin besteht, Namensabfragen wie Abfragen auf /etc/passwd, /etc/hosts, /etc/group sowie DNS Abfragen, die über libc… …   Deutsch Wikipedia

  • Hesiod (name service) — In computing, the Hesiod name service originated in Project Athena (1983 1991). It uses DNS functionality to provide access to databases of information that changes infrequently. In Unix environments it often serves to distribute information kept …   Wikipedia

  • Name server — In computing, a name server (also spelled nameserver) is a program or computer server that implements a name service protocol. It maps a human recognizable identifier to a system internal, often numeric, identification or addressing component.… …   Wikipedia

  • Switch — For other uses, see Switch (disambiguation). Electrical switches. Top, left to right: circuit breaker, mercury switch, wafer switch, DIP switch, surface mount switch, reed switch. Bottom, left to right: wall switch (U.S. style), miniature toggle… …   Wikipedia

  • .name — Jeder Name einer Domain im Internet besteht aus einer Folge von durch Punkte getrennten Zeichen. Die Bezeichnung Top Level Domain (vom englischen top level domain, übersetzt Bereich oberster Ebene; Abkürzung TLD) bezeichnet dabei den letzten… …   Deutsch Wikipedia

  • Switch (Fernsehserie) — Seriendaten Originaltitel: Switch Produktionsland: Deutschland Produktionsjahr(e): 1997–2000, 2007–2009 Episodenlänge: etwa 25 Minuten Episodenanzahl: 58 (+ 1 Silvester Special, 11 Best Offs) in 4 Staffeln Originalsprache …   Deutsch Wikipedia

  • Switch Classics — Seriendaten Originaltitel: Switch Produktionsland: Deutschland Produktionsjahr(e): 1997–2000, 2007–2009 Episodenlänge: etwa 25 Minuten Episodenanzahl: 58 (+ 1 Silvester Special, 11 Best Offs) in 4 Staffeln Originalsprache …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”