File: nsswitch.conf.5

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (271 lines) | stat: -rw-r--r-- 8,264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
.\" Copyright (c) 1998 Thorsten Kukuk (kukuk@vt.uni-paderborn.de)
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" This manual page based on the GNU C Library info pages.
.\"
.\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
.\" Translated Wed Apr 29 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\" Updated & Modified Sat Aug 21 1999
.\"       by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\" Updated Fri Oct 12 JST 2001 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.\" WORD:	lookup		()
.\"
.TH NSSWITCH.CONF 5 1999-01-17 "Linux" "Linux Programmer's Manual"
.SH ̾
nsswitch.conf \- ƥǡ١ȥ͡ॵӥåե
.SH 
C 饤֥εǽˤϡʴĶưˤ꤬
ɬפʤΤ¿¸ߤ롣Ūˤϥե (㤨 \fI/etc/passwd\fP) 
Ѥ뤳ȤǼ¸Ƥ¾Υ͡ॵӥ (Network
Information Service (NIS)  Domain Name Service (DNS)) Ūˤʤꡢ
餬 C 饤֥˼ޤ褦ˤʤäƤä̾
νϸꤵƤ
.LP
NYS 򥵥ݡȤ Linux libc5  GNU C Linrary 2.x (libc.so.6) Ǥϡ
Ϥ긫̤ɤǤ褦ˤʤäƤ롣 Sun
Microsystems  Solaris 2  C 饤֥ѤˡˤʤäƤ롣
ʲǤϤλȤߤ "Name Service Switch" (NSS) ȸƤ֡ǡ١
ξ󸻤ȡꤷΤ
.I /etc/nsswitch.conf
եǤ롣
.LP
NSS(͡ॵӥå) ǤϰʲΥǡ١򰷤ȤǤ롣
.TP
.B aliases
.BR sendmail (8)
Ѥ᡼륨ꥢ
ߤ̵뤵롣
.TP
.B ethers
ͥåֹ档
.TP
.B group
桼Υ롼ס
.BR getgrent (3)
ؿˤäѤ롣
.TP
.B hosts
ۥ̾ȥۥֹ档
.BR gethostbyname (3)
ʤɤδؿˤäѤ롣
.TP
.B netgroup
ͥåȥ磻ɤѤۥȤ桼Υꥹȡ¤
Ѥ롣 glibc 2.1  C 饤֥ϡ NIS Ǥ
netgroup 򥵥ݡȤƤ롣
.TP
.B networks
ͥåȥֹ̾档
.BR getnetent (3)
ؿˤäѤ롣
.TP
.B passwd
桼ѥɡ
.BR getpwent (3)
ؿˤäѤ롣
.TP
.B protocols
ͥåȥץȥ롣
.BR getprotoent (3)
ؿˤäѤ롣
.TP
.B publickey
NIS+  NFS ˤäѤ secure_rpc θ̩
.TP
.B rpc
⡼ȥץ㡼 (remote procedure call) ֹ̾档
.BR getrpcbyname (3)
ʤɤδؿˤäѤ롣
.TP
.B services
ͥåȥӥ
.BR getservent (3)
ؿˤäѤ롣
.TP
.B shadow
ɥ桼ѥɡ
.BR getspnam (3)
ˤäѤ롣
.LP
.I /etc/nsswitch.conf
եΰʲ˼ (˼Ƥ
.I /etc/nsswitch.conf
ե뤬ʤΥǥեȤƱǤ)
.sp 1n
.PD 0
.TP 16
passwd:
compat
.TP
group:
compat
.TP
shadow:
compat
.sp 1n
.TP
hosts:
dns [!UNAVAIL=return] files
.TP
networks:
nis [NOTFOUND=return] files
.TP
ethers:
nis [NOTFOUND=return] files
.TP
protocols:
nis [NOTFOUND=return] files
.TP
rpc:
nis [NOTFOUND=return] files
.TP
services:
nis [NOTFOUND=return] files
.PD
.LP
ǽΥϥǡ١̾Ǥ롣
ԤλĤǤϱץưꤷƤ롣
줾Υǡ١ФơˡΩǤ롣
.LP
ơΥǡ١ˤϰʲ 2 Ƥꤹ뤳ȤǤ롣
.PD 0
.TP
* ӥλꡣ `files', `db', `nis' ʤɡ
.TP
* ̤Фꥢ `[NOTFOUND=return]' ʤɡ
.PD
.LP
NYS ǽȤ߹ libc5 ǤϡǤ륵ӥ `files' `nis'
`nisplus' Τ줫Ǥ롣 hosts ФƤ `dns' Ǥ롣ޤ
passwd  group ФƤ `compat' Ǥ롣 shadow ˤ
`compat' λϤǤʤ
.LP
glibc ǤϡѤ褦Ȥ륵ӥ SERVICE 줾Ф

.BI /lib/libnss_SERVICE.so. X
Ȥե뤬ɬפˤʤ롣ɸŪʥ󥹥ȡǤ `files' `db'
`nis' `nisplus' ѤǤ褦ˤʤäƤ뤳Ȥ¿ hosts 
Ƥ `dns' Ǥ passwd group shadow ФƤ `compat'
Ǥ롣
Υӥ libc5+NYS δĶǤѤǤʤ
Сֹ
.I X
ϡ glibc 2.0 Ѥʤ 1 glibc 2.1 Ѥʤ 2 Ǥ롣
.LP
Ĥλˡϱץܺ٤椹뤿ΤΤǤ롣
 (action item) ϥӥ̾δ֤ˡѤä [] dz
Ҥ롣Ūʽ񼰤ϰʲ̤ꡣ
.LP
`[' ( `!'? STATUS `=' ACTION )+ `]'
.LP
Ǥ줾
.sp 1n
.PD 0
.TP
STATUS => success | notfound | unavail | tryagain
.TP
ACTION => return | continue
.PD
Ǥ롣
.LP
ɤʸʸ϶̤ʤ STATUS ͤεǽФ
ƱԤä̤Ǥ롣줾ΰ̣ϰʲ̤ꡣ
.TP
.B success
顼ϵ餺ɬפʥȥ꤬֤줿η̤Фǥե
Υ `return' Ǥ롣
.TP
.B notfound
ץϵǽƤ뤬ɬפͤĤʤäǥեȤ
 `continue'
.TP
.B unavail
ӥʱ³ŪˡѤǤʤɬפʥե뤬¸ߤʤDNS 
ˤϥФФ䤤碌ĤƤʤʤɤꤦ롣
ǥեȤΥ `continue'
.TP
.B tryagain
ӥŪѤǤʤե뤬åƤ롢Ф
³ߥåȤۤƤƸѤǤʤʤɤͤ롣ǥե
ȤΥ `continue'
.SS +/\- 񼰤Ȥδط (compat ⡼)
NYS ǽȤ߹Ǥʤ libc5 ϡ͡ॵӥåεǽ
Ƥʤ٤ΥݥꥷϹԤȤǤ롣
.I /etc/passwd
Ǥ +user  +@netgroup (NIS  passwd ޥåפꤷ桼
) \-user  \-@netgroup (ꤷ桼) + (NIS 
passwd ޥåפ顢줿桼ʳƤΥȥ) 
ɤꤹ뤳ȤǤ롣
ۤȤɤξ
.I /etc/passwd
κǸ + դ NIS Τ٤ƤǤʤΤǡ
͡ॵӥåѤ
(`passwd: files nis') Τ褦ˤФ®ưԤǤ
ޤ
.IR /etc/passwd ", " /etc/group ", " /etc/shadow
 + Υȥ񤫤ʤƤࡣ
٤Ԥϡ NSS  `compat' ӥѤ
+/\- 񼰤եѤ뤳ȤǤ롣ǥեȤǤϥ `nis' ˤʤ
Ƥ뤬ϵǡ١
.BR passwd_compat , group_compat , shadow_compat
ʤɤ `nisplus' ꤹ뤳ȤǾ񤭤Ǥ롣
ǡ١ GNU C 饤֥ǤѤǤʤ
.SH ե
SERVICE Ȥ̾Υӥ libnss_SERVICE.so.1 Ȥ̾ζͭ
֥ȥ饤֥ǼƤ롣 /lib ֤롣
.TP 25
.PD 0
.I /etc/nsswitch.conf
ե롣
.TP
.BI /lib/libnss_compat.so. X
glibc2 Ф `compat' Ρ
.TP
.BI /lib/libnss_db.so. X
glibc2 Ф `db' Ρ
.TP
.BI /lib/libnss_dns.so. X
glibc2 Ф `dns' Ρ
.TP
.BI /lib/libnss_files.so. X
glibc2 Ф `files' Ρ
.TP
.BI /lib/libnss_hesoid.so. X
glibc2 Ф `hesoid' Ρ
.TP
.BI /lib/libnss_nis.so. X
glibc2 Ф `nis' Ρ
.TP
.BI /lib/libnss_nisplus.so. X
glibc2 Ф `nisplus' Ρ
.TP
.I /lib/libnss_nisplus.so.2
glibc 2.1 Ф `nisplus' Ρ
.SH 
.I nsswitch.conf
Ѥ뤽줾ΥץǤϡեϰ٤ɤ߹ޤʤ
⤷ nsswitch.conf Ȥǽ񤭴Ƥ⡢
ΥץϸŤΤޤޤư³롣
.LP
Solaris Ǥ NSS ӥѤץ򥹥ƥå˥󥯤
ȤϤǤʤ Linux Ǥʤƥå󥯤Ǥ롣