United States-English |
|
|
HP-UX System Administrator's Guide: Routine Management Tasks: HP-UX 11i Version 3 > Chapter 3 Managing SystemsManaging FTP |
|
There are five files used to hold FTP configuration information. These files are listed in Table 3-1. The /etc/ftpd/ftpaccess configuration file is the primary configuration file for defining how the ftpd daemon operates. It is not necessary to enable the ftpaccess file in order to run ftpd. The configuration files allow you to configure FTP features, such as the number of FTP login tries permitted, FTP banner displays, logging of incoming and outgoing file transfers, access permissions, use of regular expressions, etc. For complete details on these files, see the ftpaccess(4), ftpgroups(4), ftpusers(4), ftphosts(4), and ftpconversion(4) manpages. If the ftpaccess file is enabled:
If the ftpaccess file is disabled:
The FTP configuration files enable you to define how ftp works, as described in the following table. Table 3-1 FTP Configuration Files
To verify the path names of all FTP configuration files, enter:
For more information see the ckconfig(1) manpage. To display the current number of users for each class and the limit for each class of users as defined in the /etc/ftpd/ftpaccess file, enter:
To display the current process information for each user logged into the FTP server, enter:
See the ftpcount(1) and ftpwho(1) manpages for more information The ftpshut command allows you to create a shutdown message file that warns users before FTP shuts down. The FTP daemon checks this file at intervals to determine the shutdown time. (You must be superuser to execute ftpshut.) After the shutdown has occurred, you must enter the ftprestart command to remove all the shutdown message files from the real, anonymous, and virtual user accounts. These message files are created by the ftpshut utility. For details on creating a FTP shutdown message, see the ftpshut(1) and the ftprestart(1) manpages and also Chapter 2 of the Installing and Administering Internet Services manual. You can specify FTP session logging using the log commands keyword in the /etc/ftpd/ftpaccess file.
For details on the log commands keyword, see the ftpaccess(4) manpage. You can log file transfer information from the FTP server daemon to the /var/adm/syslog/xferlog log file. The xferlog file records file transfer information such as current time, file transfer time, remote host, file name, file size, whether the file transfer was in ASCII or binary format. To log incoming and outgoing FTP file transfers edit the /etc/ftpd/ftpaccess file, using the log transfers keyword.
For more information, see the ftpaccess(4) manpage and the xferlog(5) manpage. Virtual FTP support allows you to manage an FTP server for two or more separate domains on the same machine. Using virtual FTP, you can configure systems so that user1 connecting via ftp to ftp.domain1.com gets one FTP banner and FTP directory, while user2 connecting via ftp to ftp.domain2.com gets another banner and directory. You can create a different set of configuration files ftpaccess, ftpconversions, ftphosts, ftpusers, and ftpgroups for each virtual FTP site. (This occurs even though the users are on the same machine and are using the same ports. For detailed information on setting up virtual FTP support, see Chapter 2 of the Installing and Administering Internet Services manual.
|
Printable version | ||
|