HP-UX Internet Services Administrator's Guide (February 2007)

You must invoke inetd as part of the boot process, by running the following command
at the HP-UX prompt:
# /sbin/init.d/inetd start
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 to restrict access to the services
started by inetd.
This section provides instructions for completing the following tasks:
“Editing the /etc/inetd.conf File” (page 32)
“Editing the /var/adm/inetd.sec File” (page 32)
If you want to write your own service and tie it in to inetd, see the BSD Sockets Interface
Programmer’s Guide, at the URL
http://docs.hp.com/hpux/onlinedocs/B2355-90136/B2355-90136.html
for more information.
Editing the /etc/inetd.conf File
To edit the inetd.conf file using any text editor, complete the following steps:
1. Make sure /etc/inetd.conf contains the following lines. If any of the lines
start with a number sign (#), remove the number sign to enable that particular
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. After modifying the /etc/inetd.conf file, type the following command to force
inetd to read its configuration file:
/usr/sbin/inetd -c
3. Make sure /etc/inetd.conf is owned by user root and group other, and
make sure its permissions are set to 0444 (-r--r--r--).
For more information, type man 4 inetd.conf or man 1M inetd at the HP-UX
prompt.
Editing the /var/adm/inetd.sec File
The /var/adm/inetd.sec file is a security file that inetd reads to determine which
remote hosts are allowed to access the services on your host. The inetd.sec file is
optional; you do not need this file to run the Internet Services.
32 Installing and Configuring Internet Services