Installing and Administering Internet Services
Contents
5
1. Product Overview
The Internet Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
Military Standards and Request for Comment Documents . . . . . . . . . .25
2. Installing and Configuring Internet Services
Installing the Internet Services Software . . . . . . . . . . . . . . . . . . . . . . . .29
Configuring the Name Service Switch . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Default Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Troubleshooting the Name Service Switch. . . . . . . . . . . . . . . . . . . . . .32
Configuring Internet Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
To Choose a Name Service. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
To Edit the /etc/hosts File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
To Configure Routes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
To Change a Host’s IP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
Configuring the Internet Daemon, inetd . . . . . . . . . . . . . . . . . . . . . . . . .39
To Edit the /etc/inetd.conf File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
To Edit the /var/adm/inetd.sec File . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
Configuring Logging for the Internet Services . . . . . . . . . . . . . . . . . . . .42
To Configure syslogd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
To Maintain System Log Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
To Configure inetd Connection Logging . . . . . . . . . . . . . . . . . . . . . . . .43
To Configure ftpd Session Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
Configuring ftp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
Configuring Anonymous ftp Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
To Add User ftp to /etc/passwd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
To Create the Anonymous ftp Directory . . . . . . . . . . . . . . . . . . . . . . . .46
Configuring ftp with /etc/ftpd/ftpaccess . . . . . . . . . . . . . . . . . . . . . . . . . .50
Enabling/Disabling the ftpaccess File. . . . . . . . . . . . . . . . . . . . . . . . . .50