Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Remote Access Services Administrator's Guide: HP-UX 11i v2, HP-UX 11i v3 > Chapter 2 Configuring FTP

The ftp Support Commands

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The following support commands are available in ftp:

ftpcount

This command displays the current number of users for each class and the limit for each class, as defined in the /etc/ftpd/ftpaccess file. If the /etc/ftpd/ftpaccess file does not exist, the /usr/bin/ftpcountcommand does not display any output. However, if the ftpaccess file exists and is 0 bytes, then an error message is displayed.

For more information, type man 1 ftpcount at the HP-UX prompt.

ftpwho

This command displays the current process information for each user logged in to the FTP server. If the /etc/ftpd/ftpaccess file does not exist, the /usr/bin/ftpwho command does not display any output. However, if the /etc/ftpd/ftpaccess file exists and is 0 bytes, then an error message is displayed.

For more information, type man 1 ftpwho at the HP-UX prompt.

ckconfig

This command verifies the pathnames of all the FTP configuration files. If the /usr/bin/ckconfig utility is unable to find the configuration files in their respective paths, it displays an error message.

For more information, type man 1 ckconfig at the HP-UX prompt.

ftpshut

This command allows superusers to create a shutdown message file that warns users before ftpd shuts down. An FTP daemon checks the /usr/bin/ftpshut file at regular intervals to determine the shutdown time.

To use the ftpshut command, perform the following steps:

  1. Edit the /etc/ftpaccess file to include a path for the shutdown message file in the entry shutdown <path>.

    (You can also create the shutdown message file with the ftpshut command in a later step.)

    NOTE: If you do not specify the shutdown <path> entry in the /etc/ftpd/ftpaccess file and try to execute the ftpshut command, then the following error message is displayed:
    No shutdown file defined in the ftpaccess file
  2. Execute the /usr/bin/ftpshut command to create the shutdown message file (with the path specified against the shutdown entry in the /etc/ftpd/ftpaccess file) in the home directory of real, anonymous, and virtual users. You must manually create the shutdown message file in the guest users’ home directory.

    The shutdown message file indicates the time of a planned shutdown and notifies users of the same. This file can also specify new connections to be denied, and current connections to be dropped at a specific time before shutdown.

    For more information, type man 1 ftpshut at the HP-UX prompt.

ftprestart

This command removes all the shutdown message files from the real, anonymous, and virtual user accounts. These message files are created by the /usr/bin/ftpshut utility in the path specified by the shutdown entry in the /etc/ftpd/ftpaccess file. For guest user accounts, you must manually remove the message files.

You must use the /usr/bin/ftprestart command after the ftpshut is executed.

For more information, type man 1 ftprestart at the HP-UX prompt.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.