inetd.conf(4) manual page
Table of Contents
inetd.conf - Internet servers database
/etc/inet/inetd.conf
/etc/inetd.conf
The inetd.conf file contains the list of servers
that inetd(1M)
invokes when it receives an Internet request over a socket.
Each server entry is composed of a single line of the form:
service-name endpoint-type protocol wait-status uid server-program server-arguments
Fields are separated by either SPACE
or TAB
characters. A ‘#’ (number sign)
indicates the beginning of a comment; characters up to the end of the line
are not interpreted by routines that search this file.
- service-name
- The name
of a valid service listed in the services file. For RPC
services, the value
of the service-name field consists of the RPC
service name or program number,
followed by a ’/’ (slash) and either a version number or a range of version
numbers (for example, rstatd/2-4).
- endpoint-type
- Can be one of:
- stream
- for
a stream socket,
- dgram
- for a datagram socket,
- raw
- for a raw socket,
- seqpacket
- for a sequenced packet socket
- tli
- for all tli endpoints
- protocol
- Must
be a recognized protocol listed in the file /etc/inet/protocols. For RPC
services, the field consists of the string rpc followed by a ’/’ (slash)
and either a ’*’ (asterisk), one or more nettypes, one or more netids, or
a combination of nettypes and netids. Whatever the value, it is first treated
as a nettype. If it is not a valid nettype, then it is treated as a netid.
For example, rpc/* for an RPC service using all the transports supported
by the system (the list can be found in the /etc/netconfig file), equivalent
to saying rpc/visible rpc/ticots for an RPC service using the Connection-Oriented
Transport Service.
- wait-status
- nowait for all but ‘single-threaded’ datagram
servers -- servers which do not release the socket until a timeout occurs.
These must have the status wait. Do not configure udp services as nowait.
This will cause a race condition where the inetd program selects on the
socket and the server program reads from the socket. Many server programs
will be forked and performance will be severly compromised.
- uid
- The user
ID
under which the server should run. This allows servers to run with access
privileges other than those for root.
- server-program
- Either the pathname
of a server program to be invoked by inetd to perform the requested service,
or the value internal if inetd itself provides the service.
- server-arguments
- If a server must be invoked with command line arguments,
the entire command line (including argument 0) must appear in this field
(which consists of all remaining words in the entry). If the server expects
inetd to pass it the address of its peer (for compatibility with 4.2BSD
executable daemons), then the first argument to the command should be specified
as ‘%A’. No more than five arguments are allowed in this field.
- /etc/netconfig
- network configuration file
- /etc/inet/protocols
- Internet
protocols
- /etc/inet/services
- Internet network services
rlogin(1)
,
rsh(1)
, in.tftpd(1M)
, inetd(1M)
, services(4)
/etc/inet/inetd.conf is
the official SVR4 name of the inetd.conf file. The symbolic link /etc/inetd.conf
exists for BSD
compatibility.
Table of Contents