OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man5 / nsswitch.conf.5
1 .\" Copyright (c) 1998 Thorsten Kukuk (kukuk@vt.uni-paderborn.de)
2 .\"
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.
7 .\"
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.
12 .\"
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.
17 .\"
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,
21 .\" USA.
22 .\"
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.
26 .\"
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>
32 .\"
33 .\" WORD:       lookup          ±ÜÍ÷(¤¹¤ë)
34 .\"
35 .TH NSSWITCH.CONF 5 1999-01-17 "Linux" "Linux Programmer's Manual"
36 .\"O .SH NAME
37 .\"O nsswitch.conf \- System Databases and Name Service Switch configuration file
38 .SH Ì¾Á°
39 nsswitch.conf \- ¥·¥¹¥Æ¥à¥Ç¡¼¥¿¥Ù¡¼¥¹¤È¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥¹¥¤¥Ã¥Á¤ÎÀßÄê¥Õ¥¡¥¤¥ë
40 .\"O .SH DESCRIPTION
41 .SH ÀâÌÀ
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
48 .\"O search order.
49 C ¥é¥¤¥Ö¥é¥ê¤Îµ¡Ç½¤ÎÃæ¤Ë¤Ï¡¢¥í¡¼¥«¥ë¤Ê´Ä¶­¤ÇÀµ¤·¤¯Æ°ºî¤µ¤»¤ë¤Ë¤ÏÀßÄ꤬
50 ɬÍפʤâ¤Î¤¬Â¿¿ô¸ºß¤¹¤ë¡£ÅÁÅýŪ¤Ë¤³¤ì¤Ï¥Õ¥¡¥¤¥ë (Î㤨¤Ð \fI/etc/passwd\fP) ¤ò
51 ÍѤ¤¤ë¤³¤È¤Ç¼Â¸½¤µ¤ì¤Æ¤­¤¿¡£¤·¤«¤·Â¾¤Î¥Í¡¼¥à¥µ¡¼¥Ó¥¹ (Network
52 Information Service (NIS) ¤ä Domain Name Service (DNS)) ¤¬°ìÈÌŪ¤Ë¤Ê¤ê¡¢
53 ¤³¤ì¤é¤¬ C ¥é¥¤¥Ö¥é¥ê¤Ë¼è¤ê¹þ¤Þ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Ã¤¿¡£¤¿¤À¤·Ä̾¸¡
54 º÷¤Î½ç½ø¤Ï¸ÇÄꤵ¤ì¤Æ¤¤¤¿¡£
55 .LP
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.
60 .\"O We follow their
61 .\"O name and call this scheme "Name Service Switch" (NSS).
62 .\"O The sources for
63 .\"O the "databases" and their lookup order are specified in the
64 .\"O .I /etc/nsswitch.conf
65 .\"O file.
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 ¤Î¾ðÊ󸻤ȡ¢¤½¤ì¤é¤ò±ÜÍ÷¤¹¤ë½ç½ø¤ò»ØÄꤷ¤¿¤Î¤¬
71 .I /etc/nsswitch.conf
72 ¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¡£
73 .LP
74 .\"O The following databases are available in the NSS:
75 NSS(¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥¹¥£¥Ã¥Á) ¤Ç¤Ï°Ê²¼¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤ò°·¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
76 .TP
77 .B aliases
78 .\"O Mail aliases, used by
79 .\"O .BR sendmail (8).
80 .\"O Presently ignored.
81 .BR sendmail (8)
82 ¤ÇÍѤ¤¤é¤ì¤ë¥á¡¼¥ë¥¨¥¤¥ê¥¢¥¹¡£
83 ¸½ºß¤Ï̵»ë¤µ¤ì¤ë¡£
84 .TP
85 .B ethers
86 .\"O Ethernet numbers.
87 ¥¤¡¼¥µ¡¼¥Í¥Ã¥ÈÈֹ档
88 .TP
89 .B group
90 .\"O Groups of users, used by
91 .\"O .BR getgrent (3)
92 .\"O functions.
93 ¥æ¡¼¥¶¡¼¤Î¥°¥ë¡¼¥×¡£
94 .BR getgrent (3)
95 ´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
96 .TP
97 .B hosts
98 .\"O Host names and numbers, used by
99 .\"O .BR gethostbyname (3)
100 .\"O and similar functions.
101 ¥Û¥¹¥È̾¤È¥Û¥¹¥ÈÈֹ档
102 .BR gethostbyname (3)
103 ¤Ê¤É¤Î´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
104 .TP
105 .B netgroup
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 ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¡£
111 .TP
112 .B networks
113 .\"O Network names and numbers, used by
114 .\"O .BR getnetent (3)
115 .\"O functions.
116 ¥Í¥Ã¥È¥ï¡¼¥¯Ì¾¤ÈÈֹ档
117 .BR getnetent (3)
118 ´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
119 .TP
120 .B passwd
121 .\"O User passwords, used by
122 .\"O .BR getpwent (3)
123 .\"O functions.
124 ¥æ¡¼¥¶¡¼¥Ñ¥¹¥ï¡¼¥É¡£
125 .BR getpwent (3)
126 ´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
127 .TP
128 .B protocols
129 .\"O Network protocols, used by
130 .\"O .BR getprotoent (3)
131 .\"O functions.
132 ¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥È¥³¥ë¡£
133 .BR getprotoent (3)
134 ´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
135 .TP
136 .B publickey
137 .\"O Public and secret keys for secure_rpc used by NIS+ and NFS.
138 NIS+ ¤È NFS ¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë secure_rpc ¤Î¸ø³«¸°¤ÈÈëÌ©¸°¡£
139 .TP
140 .B 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) ¤Î̾Á°¤ÈÈֹ档
145 .BR getrpcbyname (3)
146 ¤Ê¤É¤Î´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
147 .TP
148 .B services
149 .\"O Network services, used by
150 .\"O .BR getservent (3)
151 .\"O functions.
152 ¥Í¥Ã¥È¥ï¡¼¥¯¥µ¡¼¥Ó¥¹¡£
153 .BR getservent (3)
154 ´Ø¿ô¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
155 .TP
156 .B shadow
157 .\"O Shadow user passwords, used by
158 .\"O .BR getspnam (3).
159 ¥·¥ã¥É¥¦¥æ¡¼¥¶¡¼¥Ñ¥¹¥ï¡¼¥É¡£
160 .BR getspnam (3)
161 ¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¡£
162 .LP
163 .\"O An example
164 .\"O .I /etc/nsswitch.conf
165 .\"O (namely, the default used when
166 .\"O .I /etc/nsswitch.conf
167 .\"O is missing):
168 .I /etc/nsswitch.conf
169 ¥Õ¥¡¥¤¥ë¤Î°ìÎã¤ò°Ê²¼¤Ë¼¨¤¹ (¤³¤³¤Ë¼¨¤¹ÆâÍƤÏ
170 .I /etc/nsswitch.conf
171 ¥Õ¥¡¥¤¥ë¤¬¤Ê¤¤¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥È¤ÈƱ¤¸¤Ç¤¢¤ë)¡£
172 .sp 1n
173 .PD 0
174 .TP 16
175 passwd:
176 compat
177 .TP
178 group:
179 compat
180 .TP
181 shadow:
182 compat
183 .sp 1n
184 .TP
185 hosts:
186 dns [!UNAVAIL=return] files
187 .TP
188 networks:
189 nis [NOTFOUND=return] files
190 .TP
191 ethers:
192 nis [NOTFOUND=return] files
193 .TP
194 protocols:
195 nis [NOTFOUND=return] files
196 .TP
197 rpc:
198 nis [NOTFOUND=return] files
199 .TP
200 services:
201 nis [NOTFOUND=return] files
202 .PD
203 .LP
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 ¤½¤ì¤¾¤ì¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤ËÂФ·¤Æ¡¢±ÜÍ÷ÊýË¡¤ÏÆÈΩ¤ËÀßÄê¤Ç¤­¤ë¡£
210 .LP
211 .\"O The configuration specification for each database can contain two
212 .\"O different items:
213 ³Æ¡¹¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÎÀßÄê¤Ë¤Ï°Ê²¼¤Î 2 ¼ïÎà¤ÎÆâÍƤò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
214 .PD 0
215 .TP
216 .\"O * The service specification like `files', `db', or `nis'.
217 * ¥µ¡¼¥Ó¥¹¤Î»ØÄê¡£ `files', `db', `nis' ¤Ê¤É¡£
218 .TP
219 .\"O * The reaction on lookup result like `[NOTFOUND=return]'.
220 * ±ÜÍ÷·ë²Ì¤ËÂФ¹¤ë¥ê¥¢¥¯¥·¥ç¥ó¡£ `[NOTFOUND=return]' ¤Ê¤É¡£
221 .PD
222 .LP
223 .\"O For libc5 with NYS, the allowed service specifications are `files', `nis',
224 .\"O and `nisplus'.
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' ¤Î»ØÄê¤Ï¤Ç¤­¤Ê¤¤¡£
231 .LP
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
242 .\"O .I X
243 .\"O is 1 for glibc 2.0 and 2 for glibc 2.1.
244 glibc ¤Ç¤Ï¡¢ÍøÍѤ·¤è¤¦¤È¤¹¤ë¥µ¡¼¥Ó¥¹ SERVICE ¤½¤ì¤¾¤ì¤ËÂФ·
245 ¤Æ
246 .BI /lib/libnss_SERVICE.so. X
247 ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤¬É¬Íפˤʤ롣ɸ½àŪ¤Ê¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤Ï `files'¡¢ `db'¡¢
248 `nis'¡¢ `nisplus' ¤¬ÍøÍѤǤ­¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤¬Â¿¤¤¡£ hosts ¤ËÂÐ
249 ¤·¤Æ¤Ï `dns' ¤â»ØÄê¤Ç¤­¡¢ passwd¡¢ group¡¢ shadow ¤ËÂФ·¤Æ¤Ï `compat'
250 ¤â»ØÄê¤Ç¤­¤ë¡£
251 ¤³¤ì¤é¤Î¥µ¡¼¥Ó¥¹¤Ï libc5+NYS ¤Î´Ä¶­¤Ç¤ÏÍøÍѤǤ­¤Ê¤¤¡£
252 ¥Ð¡¼¥¸¥ç¥óÈÖ¹æ
253 .I X
254 ¤Ï¡¢ glibc 2.0 ÍѤʤé 1¡¢ glibc 2.1 ÍѤʤé 2 ¤Ç¤¢¤ë¡£
255 .LP
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 µ­½Ò¤µ¤ì¤ë¡£°ìÈÌŪ¤Ê½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ꡣ
264 .LP
265 `[' ( `!'? STATUS `=' ACTION )+ `]'
266 .LP
267 .\"O where
268 ¤³¤³¤Ç¤½¤ì¤¾¤ì
269 .sp 1n
270 .PD 0
271 .TP
272 STATUS => success | notfound | unavail | tryagain
273 .TP
274 ACTION => return | continue
275 .PD
276 ¤Ç¤¢¤ë¡£
277 .LP
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.
281 .\"O They mean:
282 ¥­¡¼¥ï¡¼¥É¤ÎÂçʸ»ú¾®Ê¸»ú¤Ï¶èÊ̤µ¤ì¤Ê¤¤¡£ STATUS ¤ÎÃͤÏÆÃÄê¤Îµ¡Ç½¤ËÂФ·
283 ¤Æ±ÜÍ÷¤ò¹Ô¤Ã¤¿·ë²Ì¤Ç¤¢¤ë¡£¤½¤ì¤¾¤ì¤Î°ÕÌ£¤Ï°Ê²¼¤ÎÄ̤ꡣ
284 .TP
285 .B success
286 .\"O No error occurred and the wanted entry is returned.
287 .\"O The default
288 .\"O action for this is `return'.
289 ¥¨¥é¡¼¤Ïµ¯¤³¤é¤º¡¢É¬Íפʥ¨¥ó¥È¥ê¤¬ÊÖ¤µ¤ì¤¿¡£¤³¤Î·ë²Ì¤ËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È
290 ¤Î¥¢¥¯¥·¥ç¥ó¤Ï `return' ¤Ç¤¢¤ë¡£
291 .TP
292 .B notfound
293 .\"O The lookup process works ok but the needed value was not found.
294 .\"O The default action is `continue'.
295 ±ÜÍ÷¥×¥í¥»¥¹¤Ïµ¡Ç½¤·¤Æ¤¤¤ë¤¬¡¢É¬ÍפÊÃͤ¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¡£¥Ç¥Õ¥©¥ë¥È¤Î
296 ¥¢¥¯¥·¥ç¥ó¤Ï `continue'¡£
297 .TP
298 .B unavail
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
304 .\"O `continue'.
305 ¥µ¡¼¥Ó¥¹¤¬¡Ê±Ê³Ū¤Ë¡ËÍøÍѤǤ­¤Ê¤¤¡£É¬Íפʥե¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¡¢DNS ¤Î
306 ¾ì¹ç¤Ë¤Ï¥µ¡¼¥Ð¤ËÂФ¹¤ëÌ䤤¹ç¤ï¤»¤¬µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¡¢¤Ê¤É¤¬¤¢¤ê¤¦¤ë¡£
307 ¥Ç¥Õ¥©¥ë¥È¤Î¥¢¥¯¥·¥ç¥ó¤Ï `continue'¡£
308 .TP
309 .B tryagain
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.
321 .\"O In
322 .\"O .I /etc/passwd
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
327 .\"O passwd map).
328 .\"O Since most people only put a + at the end of
329 .\"O .I /etc/passwd
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 ,
334 .\"O .I /etc/group ,
335 .\"O and
336 .\"O .IR /etc/shadow .
337 NYS µ¡Ç½¤òÁȤ߹þ¤ó¤Ç¤¤¤Ê¤¤ libc5 ¤Ï¡¢¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥¹¥¤¥Ã¥Á¤Îµ¡Ç½¤ò»ý¤Ã
338 ¤Æ¤¤¤Ê¤¤¡£¤·¤«¤·¤¢¤ëÄøÅ٤Υݥꥷ¡¼À©¸æ¤Ï¹Ô¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
339 .I /etc/passwd
340 ¤Ç¤Ï +user ¤ä +@netgroup (NIS ¤Î passwd ¥Þ¥Ã¥×¤«¤é»ØÄꤷ¤¿¥æ¡¼¥¶¤ò¼è¤ê¹þ
341 ¤à)¡¢ \-user ¤ä \-@netgroup (»ØÄꤷ¤¿¥æ¡¼¥¶¤ò½ü³°¤¹¤ë)¡¢ + (NIS ¤Î
342 passwd ¥Þ¥Ã¥×¤«¤é¡¢½ü³°¤µ¤ì¤¿¥æ¡¼¥¶°Ê³°¤ÎÁ´¤Æ¤Î¥¨¥ó¥È¥ê¤ò¼è¤ê¹þ¤à) ¤Ê
343 ¤É¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
344 ¤Û¤È¤ó¤É¤Î¾ì¹ç¤Ï
345 .I /etc/passwd
346 ¤ÎºÇ¸å¤Ë + ¤òÉÕ¤±¤Æ NIS ¤Î¤¹¤Ù¤Æ¤ò¼è¤ê¹þ¤ó¤Ç¤¤¤ë¤À¤±¤Ê¤Î¤Ç¡¢
347 ¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥¹¥¤¥Ã¥Á¤òÍѤ¤¤Æ
348 (`passwd: files nis') ¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤ê¹â®¤ÊÆ°ºî¤¬´üÂԤǤ­¡¢
349 ¤Þ¤¿
350 .IR /etc/passwd ", " /etc/group ", " /etc/shadow
351 ¤Ë + ¤À¤±¤Î¥¨¥ó¥È¥ê¤ò½ñ¤«¤Ê¤¯¤Æ¤¹¤à¡£
352 .\"O If this is not sufficient, the NSS `compat' service provides full
353 .\"O +/\- semantics.
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 ,
357 .\"O .B group_compat
358 .\"O and
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 ¥é¥¤¥Ö¥é¥ê¤Ç¤·¤«ÍøÍѤǤ­¤Ê¤¤¡£
367 .\"O .SH FILES
368 .SH ¥Õ¥¡¥¤¥ë
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 ¤ËÃÖ¤«¤ì¤ë¡£
373 .TP 25
374 .PD 0
375 .I /etc/nsswitch.conf
376 .\"O configuration file
377 ÀßÄê¥Õ¥¡¥¤¥ë¡£
378 .TP
379 .BI /lib/libnss_compat.so. X
380 .\"O implements `compat' source for glibc2
381 glibc2 ¤ËÂФ·¤Æ `compat' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
382 .TP
383 .BI /lib/libnss_db.so. X
384 .\"O implements `db' source for glibc2
385 glibc2 ¤ËÂФ·¤Æ `db' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
386 .TP
387 .BI /lib/libnss_dns.so. X
388 .\"O implements `dns' source for glibc2
389 glibc2 ¤ËÂФ·¤Æ `dns' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
390 .TP
391 .BI /lib/libnss_files.so. X
392 .\"O implements `files' source for glibc2
393 glibc2 ¤ËÂФ·¤Æ `files' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
394 .TP
395 .BI /lib/libnss_hesoid.so. X
396 .\"O implements `hesoid' source for glibc2
397 glibc2 ¤ËÂФ·¤Æ `hesoid' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
398 .TP
399 .BI /lib/libnss_nis.so. X
400 .\"O implements `nis' source for glibc2
401 glibc2 ¤ËÂФ·¤Æ `nis' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
402 .TP
403 .BI /lib/libnss_nisplus.so. X
404 .\"O implements `nisplus' source for glibc2
405 glibc2 ¤ËÂФ·¤Æ `nisplus' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
406 .TP
407 .I /lib/libnss_nisplus.so.2
408 .\"O implements `nisplus' source for glibc 2.1
409 glibc 2.1 ¤ËÂФ·¤Æ `nisplus' ¥½¡¼¥¹¤ò¼ÂÁõ¤·¤¿¤â¤Î¡£
410 .PD
411 .\"O .SH NOTES
412 .SH Ãí°Õ
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.
417 .I nsswitch.conf
418 ¤òÍøÍѤ¹¤ë¤½¤ì¤¾¤ì¤Î¥×¥í¥»¥¹¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë¤Ï°ìÅÙ¤·¤«Æɤ߹þ¤Þ¤ì¤Ê¤¤¡£
419 ¤â¤· nsswitch.conf ¤¬¤¢¤È¤Ç½ñ¤­´¹¤¨¤é¤ì¤Æ¤â¡¢
420 ¤½¤Î¥×¥í¥»¥¹¤Ï¸Å¤¤ÀßÄê¤Î¤Þ¤Þ¤ÇÆ°ºî¤ò·Ñ³¤¹¤ë¡£
421 .LP
422 .\"O With Solaris, it isn't possible to link programs using the NSS Service
423 .\"O statically.
424 .\"O With Linux, this is no problem.
425 Solaris ¤Ç¤Ï NSS ¥µ¡¼¥Ó¥¹¤òÍѤ¤¤¿¥×¥í¥°¥é¥à¤ò¥¹¥¿¥Æ¥£¥Ã¥¯¤Ë¥ê¥ó¥¯¤¹¤ë
426 ¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£ Linux ¤Ç¤ÏÌäÂê¤Ê¤¯¥¹¥¿¥Æ¥£¥Ã¥¯¥ê¥ó¥¯¤Ç¤­¤ë¡£