Installing and Administering Internet Services

40 Chapter 2
Installing and Configuring Internet Services
Configuring the Internet Daemon, inetd
Configuring the Internet Daemon, inetd
The internet daemon, /usr/sbin/inetd, is the master server for many
of the Internet Services. The inetd daemon listens for connection
requests for the services listed in its configuration file and starts up the
appropriate server when it receives a request.
The inetd daemon is always started as part of the boot process, by the
startup script /sbin/init.d/inetd.
The /etc/inetd.conf file is the inetd configuration file, which lists
the services that may be started by inetd. In addition to the
configuration file, you can configure an optional security file called
/var/adm/inetd.sec, which restricts access to the services started by
inetd.
This section gives instructions for completing the following tasks:
“To Edit the /etc/inetd.conf File” on page 40
“To Edit the /var/adm/inetd.sec File” on page 41
If you want to write your own service and tie it in to inetd, see the
Berkeley IPC Programmer's Guide.
To Edit the /etc/inetd.conf File
1. Make sure the following lines exist in /etc/inetd.conf. If any of
the lines starts with a pound sign (#), remove the pound sign to
enable the service.
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
telnet stream tcp nowait root /usr/lbin/telnetd telnetd
tftp dgram udp wait root /usr/lbin/tftpd tftpd
bootps dgram udp wait root /usr/lbin/bootpd bootpd
finger stream tcp nowait bin /usr/lbin/fingerd fingerd
login stream tcp nowait root /usr/lbin/rlogind rlogind
shell stream tcp nowait root /usr/lbin/remshd remshd
exec stream tcp nowait root /usr/lbin/rexecd rexecd
To disable any of these services, comment out the line by typing a
pound sign (#) as the first character on the line.
2. If you made any changes to /etc/inetd.conf, type the following
command to force inetd to read its configuration file:
/usr/sbin/inetd -c