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 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
|
.\" Copyright (c) 1985, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" from: @(#)inetd.8 6.7 (Berkeley) 3/16/91
.\" $Id: inetd.8,v 1.1.1.1 2000/10/19 08:22:16 ysato Exp $
.\" jpman %Id: inetd.8,v 1.2 1997/05/16 07:22:24 yugawa Stab %
.\"
.\" Modified for JM style on Tue Dec 14 18:07:00 JST 1999
.\" by Tatsuo SEKINE <tsekine@isoternet.org>
.\" Update and Modified on Tue Mar 13 21:08:37 JST 2001
.\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
.\"
.\"WORD: socket listen queue åȴƻ륭塼
.\"WORD: suffix եå
.\"WORD: group id 롼 ID
.\"
.Dd August 22, 1999
.Dt INETD 8
.Os "Linux NetKit (0.17)"
.Sh ̾
.Nm inetd
.Nd ͥå
.Dq ѡС
.Sh
.Nm inetd
.Op Fl di
.Op Fl q Ar queuelength
.Op Ar configuration file
.Sh
.Nm inetd
̾֡Ȼ
.Pa /etc/rc.local
ˤäƵư
.Ns ( Xr rc 8
)(: ǥȥӥ塼ˤäưۤʤ)
ѤƤ
.Xr init 8
ǤդΥǡƵưǤ硢
.Nm inetd
(/etc/rc.local ǤϤʤ) init ¹ԤǤ롣
Сå夷˺ƵưǤ롣
ξ
.Nm inetd
ȤХå饦ɤΤɤ
.Fl i
ץȤʤФʤʤ
ʤ init Ϻ𤷤Ƥޤ
.Pp
¹ԤƤ
.Nm inetd
줿ͥåȥåȤƻ뤷³Ԥġ
ƻ뤷Ƥ륽åȤФ³Фȡ
ΥåȤбӥȽꤷ
ӥץư롣
ӥץबλȡ
.Nm inetd
ϺƤӥåȤδƻԤʤ
Ҥ褦㳰⤢롣
.Nm inetd
Ѥ 1 ĤΥǡ
ʣΥӥץư뤳ȤǤΤǡ
ƥ٤ڸ뤳ȤǤ롣
.Ss ץ
.Nm inetd
˻Ǥ륪ץ:
.Bl -tag -width Ds
.It Fl d
ĤΥǥХåͭˤơ
inetd ǥХå¹Ԥ줿褦ư롣
ۤΤ
.Fl i
ꤵ롣
.It Fl i
Хå饦ɤˤʤ
.Xr init 8
¹Ԥ뤿ˤ롣
.It Fl q Ar queuelength
åȤδƻ륭塼礭ꤵ줿ͤꤹ롣
ǥեȤ 128
.El
.Ss
.Nm inetd
ϼ¹Իե뤫ɤ߹ࡣ
ǥեȤǤե
.Pa /etc/inetd.conf
Ǥ롣
եγƥեɤˤϥȥ꤬ 1 ĤʤФʤʤ
ƥեɤΥȥϥ֤䥹ڡǶڤ롣
ȤϹƬ ``#'' Ĥ롣
եΥեɤϼ̤:
.Pp
.Bd -unfilled -offset indent -compact
ӥ̾[@ۥ̾]
åȥ
ץȥ
wait/nowait[.max]
桼̾[.롼̾]
Сץ̾
Сץ
.Ed
.Pp
.Em Sun-RPC
١ΥӥҤˤϡΥȥҤ롣
.Pp
.Bd -unfilled -offset indent -compact
ӥ̾/С[@ۥ̾]
åȥ
RPC/ץȥ
wait/nowait[.max]
桼̾[.롼̾]
Сץ̾
Сץ
.Ed
.Pp
.Em ӥ̾
Υȥˤϡ
.Pa /etc/services
ե˵ҤƤ륵ӥ̾Ҥ롣
.Dq
ӥ () ˤĤƤϡ
̾ȤƤΥӥθ̾
(ʤ
.Pa /etc/services
κǽΥȥ)
.Em ʤФʤʤ
.Em Sun-RPC
١Υӥꤹ뤿ˤϡΥեɤ
.Pa /etc/rpc
˽줿ͭ RPC ӥ̾ǤʤФʤʤ
.Dq /
αʬ RPC ΥСֹǤ롣
Сֹϡ⤷ϡСϰ () ǻꤹ롣
ϰϤꤹ㤤ֹ椫⤤ֹꤹ롣
Ȥ
.Dq rusers/1-3
Τ褦˵Ҥ롣
.Pp
ӥ̾
.Em @hostname
Ȥʸɲä줿硢
inetd
.Em hostname
б IP ɥ쥹³ˤĤƤΤߡ
ӥݡȤХɤ (ƤΥɥ쥹³ listen ʤ)
ۤʤ륢ɥ쥹ФƻѤǤΤǡ
``ۥۥ''ӥǤ롣
˾οΥɥ쥹ƻǤ뤬
ͥˤ¤ˤäơ
.Nm inetd
ΥݡȤΥɥ쥹Ф (뤤Ʊ˰̤Υɥ쥹Ф)
ƻ뤹Τػߤ뤳Ȥ⤢롣
.Em hostname
ϥ륷ƥΥե˴ϢŤ줿
ǽʥۥ̾ޤ IP ɥ쥹ˤ٤Ǥ롣
.Pp
.Em åȥ
Υȥϡ
.Dq stream ,
.Dq dgram ,
.Dq raw ,
.Dq rdm ,
.Dq seqpacket
Τ줫ǡ줾쥽åȤ
stream, datagram, raw, reliably delivered message, sequenced packet socket
ǤбƤ롣
.Pp
.Em ץȥ
Υȥˤϡ
.Pa /etc/protocols
˵ҤƤͭʥץȥ̾Ҥ롣
㤨
.Dq tcp
.Dq udp
ʤɤǤ롣
RPC ١Υӥξ硢
.Dq rpc/tcp
.Dq rpc/udp
Τ褦ʻˤʤ롣
.Pp
.Em wait/nowait
ȥϡdatagram åȤˤΤŬѤǤ
(¾ΥåȤǤϡξ
.Dq nowait
ǤʤФʤʤ)
⤷ datagram С³Ȥ˥åȤʤ顢
.Nm inetd
ϥåȤФå˼뤳ȤǤ롣
Τ褦ʥС
.Dq ޥå
СȸƤФ졢
.Dq nowait
ȥꤷʤФʤʤ
äƤ datagram
ڤޤư datagram Сϡ
.Dq 륹å
СȸƤФ졢
.Dq wait
ȥꤷʤФʤʤ
.Xr comsat 8 ,
.Pq Xr biff 1 ,
.Xr talkd 8
ϸԤΥפ datagram СǤ롣
.Xr tftpd 8
㳰Ǥ; ϵ³Ω datagram СǤ롣
뤿
.Dq wait
ꤵʤФʤʤ;
СϺǽΥѥåȤɤ߹ߡʥåȤ
.Nm inetd
ʥСư褦³åǤ褦ˡ
fork ƽλ롣
ץΥեå ()
.Dq max
.Ns ( Dq wait
ޤ
.Dq nowait
ɥå``.''ʬ) ϡ60 äδ֤˺礤ĤΥС
.Nm inetd
鵯ưǤ뤫ꤹ롣
ά줿Ρ
.Dq max
ΥǥեȤ 40 Ǥ롣
.Pp
.Em user
ȥˤϡС¹Ԥ桼̾
ˤꥵС root 㤤¤Ǽ¹ԤǤ롣
桼̾³ƥɥå``.'' ղäơ
θ˥롼̾ꤹ뤳ȤǤ롣
ˤꥵС password եǻꤵ
(ץ饤ޥ) 롼 ID Ȥϰ㤦롼 ID Ǽ¹ԤǤ롣
롼̾ꤵ졢桼 root ʳäϡ
Υ桼롼פ (롼ץꥹȤ) ꤵ뤳Ȥˤʤ롣
.Pp
.Em Сץ̾
ΥȥˤϡåȤäȤ
.Nm inetd
ưȥΥӥ
СץΥѥ̾ꤹ롣
.Nm inetd
ˤǤ˼Ƥ륵ӥˤϡСץȤ
.Dq internal
ꤹ롣
.Pp
.Em Сץ
ΥȥˤϡСưݤΰ
СץεưʸǤ argv[0] ޤƵҤ롣
.Nm inetd
˼Ƥ륵ӥˤϡСץȤ
.Dq internal
ꤹ롣
.Ss Ȥ߹ߴؿ
.Nm inetd
ϡ¢롼ѤƴñʥӥȤ롣
ΥӥȤ
.Dq echo ,
.Dq discard ,
.Dq chargen
(ʸ),
.Dq daytime
(ʹ֤ɤǻ֤),
.Dq time
(ɷλ֡1900 ǯ 1 1 0 ηвÿ)
Ǥ롣
Υӥ TCP ١Ǥ롣
Υӥξܺ٤ˤĤƤŬڤ
.Tn RFC
ɥȤȤΤȡ
.Pp
.Dv SIGHUP
Ȥȡ
.Nm inetd
ϡեɤ߹ࡣ
եɤ߹ߤȤˡӥɲáѹǤ롣
.Nm inetd
ϥե
.Pa /var/run/inetd.pid
˥ץ ID Ͽ롣
.Sh Ϣ
.Xr comsat 8 ,
.Xr fingerd 8 ,
.Xr ftpd 8 ,
.Xr rexecd 8 ,
.Xr rlogind 8 ,
.Xr rshd 8 ,
.Xr telnetd 8 ,
.Xr tftpd 8
.Sh
.Nm
ޥɤ
.Bx 4.3
о줷
.Em Sun-RPC
١ΥӥΥݡȤϡ
.Em SunOS 4.1
줿Τˤʤäƺ줿
|