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
Updating Your Network Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Installing the Internet Services Software . . . . . . . . . . . . . . . . . . . . . . . .30
Configuring the Name Service Switch . . . . . . . . . . . . . . . . . . . . . . . . . . .31
Default Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Troubleshooting the Name Service Switch. . . . . . . . . . . . . . . . . . . . . .33
Configuring Internet Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
To Choose a Name Service. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
To Edit the /etc/hosts File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
To Configure Routes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
To Change a Host’s IP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
Configuring the Internet Daemon, inetd . . . . . . . . . . . . . . . . . . . . . . . . .40
To Edit the /etc/inetd.conf File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
To Edit the /var/adm/inetd.sec File . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
Configuring rwhod, the Server for rwho and ruptime. . . . . . . . . . . . . . .43
Configuring Logging for the Internet Services . . . . . . . . . . . . . . . . . . . .44
To Configure syslogd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
To Maintain System Log Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
To Configure inetd Connection Logging . . . . . . . . . . . . . . . . . . . . . . . .45
To Configure ftpd Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
Configuring ftp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
Configuring Anonymous ftp Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
To Add User ftp to /etc/passwd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
To Create the Anonymous ftp Directory . . . . . . . . . . . . . . . . . . . . . . . .48