1 .\" Copyright (c) 1998 Thorsten Kukuk (kukuk@vt.uni-paderborn.de)
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 .\" GNU General Public License for more details.
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
23 .\" This manual page based on the GNU C Library info pages.
24 .\" FIXME ? The use of quotes on this page is inconsistent with the
25 .\" rest of man-pages.
27 .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
28 .\" Translated Wed Apr 29 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
29 .\" Updated & Modified Sat Aug 21 1999
30 .\" by NAKANO Takeo <nakano@apm.seikei.ac.jp>
31 .\" Updated Fri Oct 12 JST 2001 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
33 .\" WORD: lookup ±ÜÍ÷(¤¹¤ë)
35 .TH NSSWITCH.CONF 5 1999-01-17 "Linux" "Linux Programmer's Manual"
37 .\"O nsswitch.conf \- System Databases and Name Service Switch configuration file
39 nsswitch.conf \- ¥·¥¹¥Æ¥à¥Ç¡¼¥¿¥Ù¡¼¥¹¤È¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥¹¥¤¥Ã¥Á¤ÎÀßÄê¥Õ¥¡¥¤¥ë
42 .\"O Various functions in the C Library need to be configured to work
43 .\"O correctly in the local environment.
44 .\"O Traditionally, this was done by
45 .\"O using files (e.g., \fI/etc/passwd\fP), but other nameservices (like the
46 .\"O Network Information Service (NIS) and the Domain Name Service (DNS))
47 .\"O became popular, and were hacked into the C library, usually with a fixed
49 C ¥é¥¤¥Ö¥é¥ê¤Îµ¡Ç½¤ÎÃæ¤Ë¤Ï¡¢¥í¡¼¥«¥ë¤Ê´Ä¶¤ÇÀµ¤·¤¯Æ°ºî¤µ¤»¤ë¤Ë¤ÏÀßÄ꤬
50 ɬÍפʤâ¤Î¤¬Â¿¿ô¸ºß¤¹¤ë¡£ÅÁÅýŪ¤Ë¤³¤ì¤Ï¥Õ¥¡¥¤¥ë (Î㤨¤Ð \fI/etc/passwd\fP) ¤ò
51 ÍѤ¤¤ë¤³¤È¤Ç¼Â¸½¤µ¤ì¤Æ¤¤¿¡£¤·¤«¤·Â¾¤Î¥Í¡¼¥à¥µ¡¼¥Ó¥¹ (Network
52 Information Service (NIS) ¤ä Domain Name Service (DNS)) ¤¬°ìÈÌŪ¤Ë¤Ê¤ê¡¢
53 ¤³¤ì¤é¤¬ C ¥é¥¤¥Ö¥é¥ê¤Ë¼è¤ê¹þ¤Þ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Ã¤¿¡£¤¿¤À¤·Ä̾¸¡
54 º÷¤Î½ç½ø¤Ï¸ÇÄꤵ¤ì¤Æ¤¤¤¿¡£
56 .\"O The Linux libc5 with NYS support and the GNU C Library 2.x (libc.so.6)
57 .\"O contain a cleaner solution of this problem.
58 .\"O It is designed after a method
59 .\"O used by Sun Microsystems in the C library of Solaris 2.
61 .\"O name and call this scheme "Name Service Switch" (NSS).
63 .\"O the "databases" and their lookup order are specified in the
64 .\"O .I /etc/nsswitch.conf
66 NYS ¤ò¥µ¥Ý¡¼¥È¤·¤¿ Linux libc5 ¤ä GNU C Linrary 2.x (libc.so.6) ¤Ç¤Ï¡¢
67 ¤³¤ÎÌäÂê¤Ï¤è¤ê¸«Ä̤·Îɤ¯²ò·è¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£¤³¤ì¤é¤Ï Sun
68 Microsystems ¤¬ Solaris 2 ¤Î C ¥é¥¤¥Ö¥é¥ê¤ÇÍѤ¤¤¿ÊýË¡¤Ë¤Ê¤é¤Ã¤Æ¤¤¤ë¡£
69 °Ê²¼¤Ç¤Ï¤³¤Î»ÅÁȤߤò "Name Service Switch" (NSS) ¤È¸Æ¤Ö¡£¥Ç¡¼¥¿¥Ù¡¼¥¹
70 ¤Î¾ðÊ󸻤ȡ¢¤½¤ì¤é¤ò±ÜÍ÷¤¹¤ë½ç½ø¤ò»ØÄꤷ¤¿¤Î¤¬
74 .\"O The following databases are available in the NSS:
75 NSS(¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥¹¥£¥Ã¥Á) ¤Ç¤Ï°Ê²¼¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤ò°·¤¦¤³¤È¤¬¤Ç¤¤ë¡£
78 .\"O Mail aliases, used by
79 .\"O .BR sendmail (8).
80 .\"O Presently ignored.
82 ¤ÇÍѤ¤¤é¤ì¤ë¥á¡¼¥ë¥¨¥¤¥ê¥¢¥¹¡£
86 .\"O Ethernet numbers.
90 .\"O Groups of users, used by
95 ´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
98 .\"O Host names and numbers, used by
99 .\"O .BR gethostbyname (3)
100 .\"O and similar functions.
101 ¥Û¥¹¥È̾¤È¥Û¥¹¥ÈÈֹ档
102 .BR gethostbyname (3)
103 ¤Ê¤É¤Î´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
106 .\"O Network wide list of hosts and users, used for access rules.
107 .\"O C libraries before glibc 2.1 only support netgroups over NIS.
108 ¥Í¥Ã¥È¥ï¡¼¥¯¥ï¥¤¥É¤ËÍѤ¤¤é¤ì¤ë¥Û¥¹¥È¤ä¥æ¡¼¥¶¡¼¤Î¥ê¥¹¥È¡£¥¢¥¯¥»¥¹À©¸Â¤Ë
109 ÍøÍѤµ¤ì¤ë¡£ glibc 2.1 °ÊÁ°¤Î C ¥é¥¤¥Ö¥é¥ê¤Ï¡¢ NIS ¾å¤Ç¤À¤±
110 netgroup ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¡£
113 .\"O Network names and numbers, used by
114 .\"O .BR getnetent (3)
116 ¥Í¥Ã¥È¥ï¡¼¥¯Ì¾¤ÈÈֹ档
118 ´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
121 .\"O User passwords, used by
122 .\"O .BR getpwent (3)
126 ´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
129 .\"O Network protocols, used by
130 .\"O .BR getprotoent (3)
132 ¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥È¥³¥ë¡£
134 ´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
137 .\"O Public and secret keys for secure_rpc used by NIS+ and NFS.
138 NIS+ ¤È NFS ¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë secure_rpc ¤Î¸ø³«¸°¤ÈÈëÌ©¸°¡£
141 .\"O Remote procedure call names and numbers, used by
142 .\"O .BR getrpcbyname (3)
143 .\"O and similar functions.
144 ¥ê¥â¡¼¥È¥×¥í¥·¥¸¥ã¡¼¥³¡¼¥ë (remote procedure call) ¤Î̾Á°¤ÈÈֹ档
146 ¤Ê¤É¤Î´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
149 .\"O Network services, used by
150 .\"O .BR getservent (3)
152 ¥Í¥Ã¥È¥ï¡¼¥¯¥µ¡¼¥Ó¥¹¡£
154 ´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
157 .\"O Shadow user passwords, used by
158 .\"O .BR getspnam (3).
159 ¥·¥ã¥É¥¦¥æ¡¼¥¶¡¼¥Ñ¥¹¥ï¡¼¥É¡£
164 .\"O .I /etc/nsswitch.conf
165 .\"O (namely, the default used when
166 .\"O .I /etc/nsswitch.conf
168 .I /etc/nsswitch.conf
169 ¥Õ¥¡¥¤¥ë¤Î°ìÎã¤ò°Ê²¼¤Ë¼¨¤¹ (¤³¤³¤Ë¼¨¤¹ÆâÍƤÏ
170 .I /etc/nsswitch.conf
171 ¥Õ¥¡¥¤¥ë¤¬¤Ê¤¤¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥È¤ÈƱ¤¸¤Ç¤¢¤ë)¡£
186 dns [!UNAVAIL=return] files
189 nis [NOTFOUND=return] files
192 nis [NOTFOUND=return] files
195 nis [NOTFOUND=return] files
198 nis [NOTFOUND=return] files
201 nis [NOTFOUND=return] files
204 .\"O XXX: The first column is the database.
205 .\"O XXX: The rest of the line specifies how the lookup process works.
206 .\"O You can specify the way it works for each database individually.
207 ºÇ½é¤Î¥«¥é¥à¤Ï¥Ç¡¼¥¿¥Ù¡¼¥¹Ì¾¤Ç¤¢¤ë¡£
208 ¹Ô¤Î»Ä¤ê¤Ç¤Ï±ÜÍ÷¥×¥í¥»¥¹¤ÎÆ°ºî¤ò»ØÄꤷ¤Æ¤¤¤ë¡£
209 ¤½¤ì¤¾¤ì¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤ËÂФ·¤Æ¡¢±ÜÍ÷ÊýË¡¤ÏÆÈΩ¤ËÀßÄê¤Ç¤¤ë¡£
211 .\"O The configuration specification for each database can contain two
212 .\"O different items:
213 ³Æ¡¹¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÎÀßÄê¤Ë¤Ï°Ê²¼¤Î 2 ¼ïÎà¤ÎÆâÍƤò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
216 .\"O * The service specification like `files', `db', or `nis'.
217 * ¥µ¡¼¥Ó¥¹¤Î»ØÄê¡£ `files', `db', `nis' ¤Ê¤É¡£
219 .\"O * The reaction on lookup result like `[NOTFOUND=return]'.
220 * ±ÜÍ÷·ë²Ì¤ËÂФ¹¤ë¥ê¥¢¥¯¥·¥ç¥ó¡£ `[NOTFOUND=return]' ¤Ê¤É¡£
223 .\"O For libc5 with NYS, the allowed service specifications are `files', `nis',
225 .\"O For hosts, you could specify `dns' as extra service, for
226 .\"O passwd and group `compat', but not for shadow.
227 NYS µ¡Ç½¤òÁȤ߹þ¤ó¤À libc5 ¤Ç¤Ï¡¢»ØÄê¤Ç¤¤ë¥µ¡¼¥Ó¥¹¤Ï `files'¡¢ `nis'¡¢
228 `nisplus' ¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ë¡£ hosts ¤ËÂФ·¤Æ¤Ï `dns' ¤â»ØÄê¤Ç¤¤ë¡£¤Þ¤¿
229 passwd ¤È group ¤ËÂФ·¤Æ¤Ï `compat' ¤â»ØÄê¤Ç¤¤ë¡£ shadow ¤Ë¤Ï
230 `compat' ¤Î»ØÄê¤Ï¤Ç¤¤Ê¤¤¡£
232 .\"O For glibc, you must have a file called
233 .\"O .BI /lib/libnss_SERVICE.so. X
234 .\"O for every SERVICE you are using.
235 .\"O On a standard installation, you could use
236 .\"O `files', `db', `nis', and `nisplus'.
237 .\"O For hosts, you could specify `dns' as
238 .\"O extra service, for passwd, group, and shadow `compat'.
239 .\"O These services will not
240 .\"O be used by libc5 with NYS.
241 .\"O The version number
243 .\"O is 1 for glibc 2.0 and 2 for glibc 2.1.
244 glibc ¤Ç¤Ï¡¢ÍøÍѤ·¤è¤¦¤È¤¹¤ë¥µ¡¼¥Ó¥¹ SERVICE ¤½¤ì¤¾¤ì¤ËÂФ·
246 .BI /lib/libnss_SERVICE.so. X
247 ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤¬É¬Íפˤʤ롣ɸ½àŪ¤Ê¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤Ï `files'¡¢ `db'¡¢
248 `nis'¡¢ `nisplus' ¤¬ÍøÍѤǤ¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤¬Â¿¤¤¡£ hosts ¤ËÂÐ
249 ¤·¤Æ¤Ï `dns' ¤â»ØÄê¤Ç¤¡¢ passwd¡¢ group¡¢ shadow ¤ËÂФ·¤Æ¤Ï `compat'
251 ¤³¤ì¤é¤Î¥µ¡¼¥Ó¥¹¤Ï libc5+NYS ¤Î´Ä¶¤Ç¤ÏÍøÍѤǤ¤Ê¤¤¡£
254 ¤Ï¡¢ glibc 2.0 ÍѤʤé 1¡¢ glibc 2.1 ÍѤʤé 2 ¤Ç¤¢¤ë¡£
256 .\"O The second item in the specification gives the user much finer
257 .\"O control on the lookup process.
258 .\"O Action items are placed between two
259 .\"O service names and are written within brackets.
260 .\"O The general form is
261 Æó¤Ä¤á¤Î»ØÄêÊýË¡¤Ï±ÜÍ÷¥×¥í¥»¥¹¤ò¤è¤ê¾ÜºÙ¤ËÀ©¸æ¤¹¤ë¤¿¤á¤Î¤â¤Î¤Ç¤¢¤ë¡£¥¢
262 ¥¯¥·¥ç¥ó»ØÄê (action item) ¤Ï¥µ¡¼¥Ó¥¹Ì¾¤Î´Ö¤Ë¡¢³Ñ¤«¤Ã¤³ [] ¤Ç³ç¤é¤ì¤Æ
263 µ½Ò¤µ¤ì¤ë¡£°ìÈÌŪ¤Ê½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ꡣ
265 `[' ( `!'? STATUS `=' ACTION )+ `]'
272 STATUS => success | notfound | unavail | tryagain
274 ACTION => return | continue
278 .\"O The case of the keywords is insignificant.
279 .\"O The STATUS values are
280 .\"O the results of a call to a lookup function of a specific service.
282 ¥¡¼¥ï¡¼¥É¤ÎÂçʸ»ú¾®Ê¸»ú¤Ï¶èÊ̤µ¤ì¤Ê¤¤¡£ STATUS ¤ÎÃͤÏÆÃÄê¤Îµ¡Ç½¤ËÂФ·
283 ¤Æ±ÜÍ÷¤ò¹Ô¤Ã¤¿·ë²Ì¤Ç¤¢¤ë¡£¤½¤ì¤¾¤ì¤Î°ÕÌ£¤Ï°Ê²¼¤ÎÄ̤ꡣ
286 .\"O No error occurred and the wanted entry is returned.
288 .\"O action for this is `return'.
289 ¥¨¥é¡¼¤Ïµ¯¤³¤é¤º¡¢É¬Íפʥ¨¥ó¥È¥ê¤¬ÊÖ¤µ¤ì¤¿¡£¤³¤Î·ë²Ì¤ËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È
290 ¤Î¥¢¥¯¥·¥ç¥ó¤Ï `return' ¤Ç¤¢¤ë¡£
293 .\"O The lookup process works ok but the needed value was not found.
294 .\"O The default action is `continue'.
295 ±ÜÍ÷¥×¥í¥»¥¹¤Ïµ¡Ç½¤·¤Æ¤¤¤ë¤¬¡¢É¬ÍפÊÃͤ¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¡£¥Ç¥Õ¥©¥ë¥È¤Î
296 ¥¢¥¯¥·¥ç¥ó¤Ï `continue'¡£
299 .\"O The service is permanently unavailable.
300 .\"O This can either mean the
301 .\"O needed file is not available, or, for DNS, the server is not
302 .\"O available or does not allow queries.
303 .\"O The default action is
305 ¥µ¡¼¥Ó¥¹¤¬¡Ê±Ê³Ū¤Ë¡ËÍøÍѤǤ¤Ê¤¤¡£É¬Íפʥե¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¡¢DNS ¤Î
306 ¾ì¹ç¤Ë¤Ï¥µ¡¼¥Ð¤ËÂФ¹¤ëÌ䤤¹ç¤ï¤»¤¬µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¡¢¤Ê¤É¤¬¤¢¤ê¤¦¤ë¡£
307 ¥Ç¥Õ¥©¥ë¥È¤Î¥¢¥¯¥·¥ç¥ó¤Ï `continue'¡£
310 .\"O The service is temporarily unavailable.
311 .\"O This could mean a file is
312 .\"O locked or a server currently cannot accept more connections.
313 .\"O The default action is `continue'.
314 ¥µ¡¼¥Ó¥¹¤¬°ì»þŪ¤ËÍøÍѤǤ¤Ê¤¤¡£¥Õ¥¡¥¤¥ë¤¬¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë¡¢¥µ¡¼¥Ð¤ÎÀÜ
315 ³¿ô¤¬¥ê¥ß¥Ã¥È¤ò±Û¤¨¤Æ¤¤¤Æ¸½ºßÍøÍѤǤ¤Ê¤¤¡¢¤Ê¤É¤¬¹Í¤¨¤é¤ì¤ë¡£¥Ç¥Õ¥©¥ë
316 ¥È¤Î¥¢¥¯¥·¥ç¥ó¤Ï `continue'¡£
317 .\"O .SS Interaction with +/\- syntax (compat mode)
318 .SS +/\- ½ñ¼°¤È¤Î´Ø·¸ (compat ¥â¡¼¥É)
319 .\"O Linux libc5 without NYS does not has the name service switch but does
320 .\"O allow the user some policy control.
323 .\"O you could have entries of the form +user or +@netgroup
324 .\"O (include the specified user from the NIS passwd map),
325 .\"O \-user or \-@netgroup (exclude the specified user),
326 .\"O and + (include every user, except the excluded ones, from the NIS
328 .\"O Since most people only put a + at the end of
330 .\"O to include everything from NIS, the switch provides a faster
331 .\"O alternative for this case (`passwd: files nis') which doesn't
332 .\"O require the single + entry in
333 .\"O .IR /etc/passwd ,
336 .\"O .IR /etc/shadow .
337 NYS µ¡Ç½¤òÁȤ߹þ¤ó¤Ç¤¤¤Ê¤¤ libc5 ¤Ï¡¢¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥¹¥¤¥Ã¥Á¤Îµ¡Ç½¤ò»ý¤Ã
338 ¤Æ¤¤¤Ê¤¤¡£¤·¤«¤·¤¢¤ëÄøÅ٤Υݥꥷ¡¼À©¸æ¤Ï¹Ô¤¦¤³¤È¤¬¤Ç¤¤ë¡£
340 ¤Ç¤Ï +user ¤ä +@netgroup (NIS ¤Î passwd ¥Þ¥Ã¥×¤«¤é»ØÄꤷ¤¿¥æ¡¼¥¶¤ò¼è¤ê¹þ
341 ¤à)¡¢ \-user ¤ä \-@netgroup (»ØÄꤷ¤¿¥æ¡¼¥¶¤ò½ü³°¤¹¤ë)¡¢ + (NIS ¤Î
342 passwd ¥Þ¥Ã¥×¤«¤é¡¢½ü³°¤µ¤ì¤¿¥æ¡¼¥¶°Ê³°¤ÎÁ´¤Æ¤Î¥¨¥ó¥È¥ê¤ò¼è¤ê¹þ¤à) ¤Ê
343 ¤É¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
346 ¤ÎºÇ¸å¤Ë + ¤òÉÕ¤±¤Æ NIS ¤Î¤¹¤Ù¤Æ¤ò¼è¤ê¹þ¤ó¤Ç¤¤¤ë¤À¤±¤Ê¤Î¤Ç¡¢
347 ¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥¹¥¤¥Ã¥Á¤òÍѤ¤¤Æ
348 (`passwd: files nis') ¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤ê¹â®¤ÊÆ°ºî¤¬´üÂԤǤ¡¢
350 .IR /etc/passwd ", " /etc/group ", " /etc/shadow
351 ¤Ë + ¤À¤±¤Î¥¨¥ó¥È¥ê¤ò½ñ¤«¤Ê¤¯¤Æ¤¹¤à¡£
352 .\"O If this is not sufficient, the NSS `compat' service provides full
354 .\"O By default, the source is `nis', but this may be
355 .\"O overridden by specifying `nisplus' as source for the pseudo-databases
356 .\"O .BR passwd_compat ,
359 .\"O .BR shadow_compat .
360 .\"O These pseudo-databases are only available in GNU C Library.
361 ¤è¤êºÙ¤«¤ÊÀ©¸æ¤ò¹Ô¤¤¤¿¤¤¾ì¹ç¤Ï¡¢ NSS ¤Î `compat' ¥µ¡¼¥Ó¥¹¤òÍѤ¤¤ì¤Ð
362 +/\- ½ñ¼°¤ò¥Õ¥ë¤ËÍѤ¤¤ë¤³¤È¤¬¤Ç¤¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥½¡¼¥¹¤Ï `nis' ¤Ë¤Ê¤Ã
363 ¤Æ¤¤¤ë¤¬¡¢¤³¤ì¤Ïµ¼»÷¥Ç¡¼¥¿¥Ù¡¼¥¹
364 .BR passwd_compat , group_compat , shadow_compat
365 ¤Ê¤É¤Ë `nisplus' ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¾å½ñ¤¤Ç¤¤ë¡£
366 ¤³¤ì¤é¤Îµ¼»÷¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ï GNU C ¥é¥¤¥Ö¥é¥ê¤Ç¤·¤«ÍøÍѤǤ¤Ê¤¤¡£
369 .\"O A service named SERVICE is implemented by a shared object library
370 .\"O named libnss_SERVICE.so.1 that resides in /lib.
371 SERVICE ¤È¤¤¤¦Ì¾Á°¤Î¥µ¡¼¥Ó¥¹¤Ï libnss_SERVICE.so.1 ¤È¤¤¤¦Ì¾Á°¤Î¶¦Í¥ª
372 ¥Ö¥¸¥§¥¯¥È¥é¥¤¥Ö¥é¥ê¤Ç¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¡£¤³¤ì¤Ï /lib ¤ËÃÖ¤«¤ì¤ë¡£
375 .I /etc/nsswitch.conf
376 .\"O configuration file
379 .BI /lib/libnss_compat.so. X
380 .\"O implements `compat' source for glibc2
381 glibc2 ¤ËÂФ·¤Æ `compat' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
383 .BI /lib/libnss_db.so. X
384 .\"O implements `db' source for glibc2
385 glibc2 ¤ËÂФ·¤Æ `db' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
387 .BI /lib/libnss_dns.so. X
388 .\"O implements `dns' source for glibc2
389 glibc2 ¤ËÂФ·¤Æ `dns' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
391 .BI /lib/libnss_files.so. X
392 .\"O implements `files' source for glibc2
393 glibc2 ¤ËÂФ·¤Æ `files' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
395 .BI /lib/libnss_hesoid.so. X
396 .\"O implements `hesoid' source for glibc2
397 glibc2 ¤ËÂФ·¤Æ `hesoid' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
399 .BI /lib/libnss_nis.so. X
400 .\"O implements `nis' source for glibc2
401 glibc2 ¤ËÂФ·¤Æ `nis' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
403 .BI /lib/libnss_nisplus.so. X
404 .\"O implements `nisplus' source for glibc2
405 glibc2 ¤ËÂФ·¤Æ `nisplus' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
407 .I /lib/libnss_nisplus.so.2
408 .\"O implements `nisplus' source for glibc 2.1
409 glibc 2.1 ¤ËÂФ·¤Æ `nisplus' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
413 .\"O Within each process that uses
414 .\"O .BR nsswitch.conf ,
415 .\"O the entire file is read only once; if the file is later changed, the
416 .\"O process will continue using the old configuration.
418 ¤òÍøÍѤ¹¤ë¤½¤ì¤¾¤ì¤Î¥×¥í¥»¥¹¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë¤Ï°ìÅÙ¤·¤«Æɤ߹þ¤Þ¤ì¤Ê¤¤¡£
419 ¤â¤· nsswitch.conf ¤¬¤¢¤È¤Ç½ñ¤´¹¤¨¤é¤ì¤Æ¤â¡¢
420 ¤½¤Î¥×¥í¥»¥¹¤Ï¸Å¤¤ÀßÄê¤Î¤Þ¤Þ¤ÇÆ°ºî¤ò·Ñ³¤¹¤ë¡£
422 .\"O With Solaris, it isn't possible to link programs using the NSS Service
424 .\"O With Linux, this is no problem.
425 Solaris ¤Ç¤Ï NSS ¥µ¡¼¥Ó¥¹¤òÍѤ¤¤¿¥×¥í¥°¥é¥à¤ò¥¹¥¿¥Æ¥£¥Ã¥¯¤Ë¥ê¥ó¥¯¤¹¤ë
426 ¤³¤È¤Ï¤Ç¤¤Ê¤¤¡£ Linux ¤Ç¤ÏÌäÂê¤Ê¤¯¥¹¥¿¥Æ¥£¥Ã¥¯¥ê¥ó¥¯¤Ç¤¤ë¡£