INETD.CONF(4)
NAME
inetd.conf − configuration file for inetd(8C)
DESCRIPTION
This file, nominally /etc/inetd.conf, is, in nearly all installations, a link to the per-node file ‘node_data/etc.inetd.conf. The Internet superdaemon, inetd(8), reads this file at boot time and, in some cases, after it gets a hangup signal.
The etc.inetd.conf file is “free format.” All fields must be present in each entry, and must appear in the order shown below.
service name Must be must present in /etc/services.
socket type Must be one of stream, dgram, raw, rdm, or seqpacket.
protocol Must be listed in /etc/protocols.
wait/nowait Use wait for single-threaded servers (ones that simply take over the socket from inetd). Use nowait for multi-threaded servers (ones which connect directly to the peer, freeing up the socket for continued use by inetd.)
server program The full pathname to this program (e.g., /etc/ftpd).
server program arguments A maximum of MAXARGS (normally 5).
Continuation lines, if required, must begin with a space or tab. To allow comments, inetd ignores any line that has a pound sign (#) in column 1.
EXAMPLES
We ship a template for inetd.conf with the bsd4.2 version of DOMAIN/IX. Copy this template from the master DOMAIN/IX node at your site to your node’s ‘node_data directory using a command line like the one below. % cp template_file ‘node_data/etc.inetd.conf where template_file is the file /sys/node_data/etc.inetd.conf on the master DOMAIN/IX node at your site.
The template file includes entries for all internet services available in the bsd4.2 version of DOMAIN/IX. All entries are commented out in the template file. Unless you remove the comment delimiters, inetd will be configured to do nothing. In the example file below, comment lines have been removed from the entries for telnetd(8C) and rlogind(8C). # etc.inetd.conf template # DOMAIN/IX version of 12/04/85 # # remove # characters to allow services # # # Run telnetd and/or rlogind on nodes to which # you wish to allow incoming login #telnet stream tcp nowait /etc/telnetd telnetd #login stream tcp nowait /etc/rlogind rlogind # # Run rshd and/or rexecd on nodes to which # you wish to allow remote command execution #shell stream tcp nowait /etc/rshd rshd #exec stream tcp nowait /etc/rexecd rexecd # # Only one ftpd is needed per ring, but you may want to # run more than one to maximize availability #ftp stream tcp nowait /etc/ftpd ftpd
FILES
/etc/services List of Internet services
/etc/protocols List of Internet protocols
/etc/inetd Internet superdaemon; reads inetd.conf for configuration data.
/etc/ftpd FTP daemon
/etc/rexecd Remote execution server
/etc/rlogind Remote log-in daemon
/etc/rshd Remote Shell server
/etc/telnetd DARPA TELNET protocol server
RELATED INFORMATION
inetd(8C) services(5) rexecd(8C) rlogind(8C) rshd(8C) telnetd(8C)