NSSWITCH.CONF(5) Linux Programmer's Manual NSSWITCH.CONF(5) NAME nsswitch.conf - DESCRIPTION C , (`/etc/passwd') . , NIS, DNS, , C , . NYS Linux libc5GNU C Library 2.x (libc.so.6), . Sun MicrosystemsSolaris 2 C , , "(NSS)". "" /etc/nsswitch.conf . NSS : aliases , sendmail(8) . ethers . group , getgrent(3) . hosts , gethostbyname(3) . netgroup , . network , getnetent(3) . passwd , getpwent(3) . protocols , getprotoent(3) . publickey NIS+NFS secure_rpc. rpc , getrpcbyname(3) . services , getservent(3) . shadow shadow, getspnam(3) . /etc/nsswitch.conf ( /etc/nsswitch.conf , ): passwd: compat group: compat shadow: compat hosts: dns [!UNAVAIL=return] files networks: nis [NOTFOUND=return] files ethers: nis [NOTFOUND=return] files protocols: nis [NOTFOUND=return] files rpc: nis [NOTFOUND=return] files services: nis [NOTFOUND=return] files , . . : * , `files', `db', `nis'. * , `[NOTFOUND=return]'. NYSlibc5`files', `nis'`nisplus',hosts `dns' , passwdgroup `compat', shadow`compat'. GNU C Library, SERVICE /lib/libnss_SERVICE.so.1 . , `files',`db', `nis'`nisplus'. , hosts `dns' , passwd, group, shadow `compat', NYS libc5, . . Action, , : `[' ( `!'? STATUS `=' ACTION )+ `]' STATUS => success | notfound | unavail | tryagain ACTION => return | continue . STATUS, : success , . action`return'. notfound , . action`continue'. unavail . , ,DNS .action`continue'. tryagain . . action`continue'. +/-(compat )NYSlinux libc5, . /etc/passwd +user+@netgroup(NIS passwd), -user-@netgroup(), + (, NIS passwd). + /etc/passwd , NIS . , (`passwd: files nis'), /etc/passwd, /etc/group /etc/shadow + . , NSS `compat' +/-. passwd_compat, group_compat shadow_compat `nisplus'`nis', GNU C Library. FILES SERVICE/liblibnss_SERVICE.so.1. /etc/nsswitch.conf /lib/libnss_compat.so.1 GNU C Library 2.x`compat' /lib/libnss_db.so.1 GNU C Library 2.x`db' /lib/libnss_dns.so.1 GNU C Library 2.x`dns' /lib/libnss_files.so.1 GNU C Library 2.x`files' /lib/libnss_hesoid.so.1 GNU C Library 2.x`hesoid' /lib/libnss_nis.so.1 GNU C Library 2.x`nis' /lib/libnss_nisplus.so.1 GNU C Library 2.x`nisplus' NOTES nsswitch.conf , , . Solaris , NSS Service , Linux , . [] [] 2000.11.11 linuxman: http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh Linux 11 January 1998 NSSWITCH.CONF(5)