Defines how the inetd daemon handles Internet service requests.
The /etc/inetd.conf file is the default configuration file for the inetd daemon. This file enables you to specify the daemons to start by default and supply the arguments that correspond to the desired style of functioning for each daemon.
If you change the /etc/inetd.conf file, run the refresh -s inetd or kill -1 InetdPID command to inform the inetd daemon of the changes to its configuration file. The inetd.conf file specifies which daemons start by default and supplies arguments determining the style of functioning for each daemon.
The following daemons are controlled by the inetd daemon:
The ftpd, rlogind, rexecd, rshd, talkd, telnetd, and uucpd daemons are started by default. The tftpd, fingerd, and comsat daemons are not started by default unless they are uncommented in the /etc/inetd.conf file.
The following Internet service requests are supported internally by the inetd daemon and are generally used for debugging:
|ECHO||Returns data packets to a client host.|
|DISCARD||Discards received data packets.|
|CHARGEN||Discards received data packets and sends predefined or random data.|
|DAYTIME||Sends the current date and time in user-readable form.|
|TIME||Sends the current date and time in machine-readable form.|
The inetd daemon reads its configuration file only when the inetd daemon starts, when the inetd daemon receives a SIGHUP signal, or when the SRC refresh -s inetd command is entered. Each line in the inetd configuration file defines how to handle one Internet service request only.
Each line is of the form:
ServiceName SocketType ProtocolName Wait/NoWait UserName ServerPath ServerArgs
These fields must be separated by spaces or tabs and have the following meanings:
|ServiceName||Contains the name of an Internet service defined in the etc/services file. For services provided internally by the inetd daemon, this name must be the official name of the service. That is, the name must be identical to the first entry on the line that describes the service in the /etc/services file.|
|SocketType|| Contains the name for the type of socket used for the service. Possible values for the SocketType parameter are:
|ProtocolName||Contains the name of an Internet protocol defined in the /etc/protocols file. For example, use the tcp value for a service that uses TCP/IP and the udp value for a service that uses the User Datagram Protocol (UDP).|
|Wait/NoWait||Contains either the wait or the nowait instruction for datagram sockets and the nowait instruction for stream sockets. The Wait/NoWait field determines whether the inetd daemon waits for a datagram server to release the socket before continuing to listen at the socket.|
|Wait/NoWait/SRC||Contains either the wait, the nowait, or the SRC instruction for datagram sockets and the nowait instruction for stream sockets. The Wait/NoWait/SRC field determines whether the inetd daemon waits for a datagram server to release the socket before continuing to listen at the socket. The SRC instruction works like wait, but instead of forking and waiting for the child to die, it does a startsrc on the subsystem and stores information about the starting of the service. When the service is removed from the inetd.conf file and inetd is restarted, the service then has a stopsrc issued to the service to stop it.|
|UserName||Specifies the user name that the inetd daemon should use to start the server. This variable allows a server to be given less permission than the root user.|
|ServerPath||Specifies the full path name of the server that the inetd daemon should execute to provide the service. For services that the inetd daemon provides internally, this field should be internal.|
|ServerArgs||Specifies the command line arguments that the inetd daemon should use to execute the server. The maximum number of arguments is five. The first argument specifies the name of the server used. If the SocketType parameter is sunrpc_tcp or sunrpc_udp, the second argument specifies the program name and the third argument specifies the version of the program. For services that the inetd daemon provides internally, this field should be empty.|
The following are example entries in the /etc/inetd.conf file for an inetd daemon that:
This file is part of TCP/IP in Network Support Facilities in Base Operating System (BOS) Runtime.
|etc/services||Defines the sockets and protocols used for Internet services.|
|/etc/protocols||Defines the Internet protocols used on the local host.|
The kill command, refresh command.
The inetd daemon.
The protocols file format, services file format.
Configuring the inetd Daemon, Transmission Control Protocol (TCP), TCP/IP Daemons, User Datagram Protocol (UDP) in AIX Version 4.3 System Management Guide: Communications and Networks.