HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 69
Configuring Anonymous ftp Access
View all HP Visualize J210XC manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 69 highlights
Configuring TCP/IP messages) are sent to /var/adm/syslog/syslog.log. Log messages from any facility at the alert level or higher are sent to the console and any terminal where the superuser is logged in. All messages at the emergency level or higher are sent to all users on the system. Configuring inetd Connection Logging The inetd daemon can log connection requests through syslogd. It logs successful connections at the information level and unsuccessful connection attempts at the notice level. By default, inetd starts up with connection logging turned off. If inetd is running with connection logging turned off, issue the following command to start it: # /usr/sbin/inetd -l If inetd is running with connection logging turned on, the same command turns it off. Configuring ftpd Logging To configure ftpd to log messages about logins, login failures, and anonymous ftp activity, follow these steps: 1. Add the -l or -v (verbose) option to the ftp line in the /etc/inetd.conf file, as in the following example: FTP STREAM TCP NOWAIT ROOT /USR/LBIN/FTPD FTPD -L The -v option provides more detailed logging than the -l option, except for anonymous ftp. For anonymous ftp, the -l and -v options provide the same level of logging. 2. Issue the following command to force inetd to read its configuration file: # /usr/sbin/inetd -c Configuring Anonymous ftp Access You can follow the instructions in this section, or you can use SAM to configure anonymous ftp access. 1. Use a text editor to add a line for user ftp to the /etc/passwd file, as in the following example: ftp:*:500:guest:anonymous ftp:/home/ftp:/usr/bin/false The password field should be *, the group membership should be guest, and the login shell should be /usr/bin/false. In this example, user ftp's user id is 500, and the anonymous ftp directory is /home/ftp. Type man 4 passwd at the HP-UX prompt for information on the passwd file. 2. Create the ftp home directory that you configured in the /etc/passwd file, as in the following example: # cd /home # mkdir ftp 3. Create the subdirectory /usr/bin under the ftp home directory: # cd /home/ftp # mkdir usr # cd usr # mkdir bin 64