Customizing FTP Server

When a client connects to an FTP server, the user often lacks site information. Without site information, the user does not know if this is the correct FTP server, or what the files at the site contain. By adding a welcome message, exit message, and directory contents message, you can supply such information to visitors to your FTP site.

You can use two methods to add information about your FTP site. Both methods can enhance its usability.

You can use the Internet Service Manager to add default Welcome or Exit messages to the FTP server. Double-click the FTP service, then click Messages to add or change FTP service messages.

You can also add an FTP directory description file. For examples of this process, see Chapter 5, "Enterprise Scenarios."

To enable the FTP directory description file

  1. Click the Start button, then point to Run. In the Open box, type regedt32.exe and then click OK.
  2. The Registry Editor appears.

  3. Click the HKEY_LOCAL_MACHINE window and locate the following key:
  4. \System

    \CurrentControlSet

    \Services

    \MSFTPSVC

    \Parameters

  5. On the Edit menu, click Add Value.
  6. The Add Value dialog box appears.

  7. In the Value Name text box, type Annotate Directories.
  8. In the Data Type box, select REG_DWORD and then click OK.

The DWORD Editor dialog box appears.

  1. In the Data text box type 1 and click OK.

The Registry Editor adds the new value to the Parameters key.

  1. Close the Registry Editor.
  2. To implement these changes, stop and restart the FTP service.

To add an FTP directory description file

  1. Using a text editor, create the file ~ftpsvc~.ckm
  2. In the file, type the following lines:

Directory for the Terra Flora FTP Server

------------------------------------------------------

  1. Save the file in the root directory of the FTP server and close the editor.
  2. At the command prompt in the root directory of the FTP server, type the following information and then press Enter.

attrib +h ~ftpsvc~.ckm

This step hides the file.

To verify the customized FTP server

  1. At the command prompt, type the following information.

ftp 127.0.0.1

This step uses the IP loopback address to start an FTP session on your local computer.

The FTP client prompts you to log on.

  1. Log on as Anonymous.
  2. The introductory message and the annotated directory listing appear.

  3. At the ftp> command prompt, type the following information.

BYE

The exit message appears.