Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

December 19, 2000 12:00 AM

Running an FTP Server on IIS 5.0

Windows IT Pro
InstantDoc ID #16395
Rating: (0)

FTP is the protocol used for copying files to and from remote computer systems using TCP/IP. It is the transport mechanism that many (if not most) Internet content management solutions use. This protocol lets users use FTP commands (or programs) to work with files, such as listing files and directories on a remote system. Windows 2000 installs a single FTP server by default when it installs Microsoft IIS. IIS 5.0 facilitates having many FTP servers on one machine.

The default FTP server that IIS 5.0 installs is configured and ready to go with anonymous access immediately after installation. If your network has a name resolution system (typically DNS), visitors can type ftp:// and the DNS name in the address bar of their browsers to reach your site (e.g., ftp://ftp.microsoft.com). If your network doesn't have a DNS-like system, visitors must type ftp:// and your server's numerical IP address. Command-line users can still use a standalone command-line FTP program that's available on many platforms and OSs.

Anonymous FTP access is an authentication mechanism that is identical to Anonymous authentication for the IIS 5.0 Web server. Users can connect to your FTP server without providing usernames and passwords (except for a username of Anonymous and a password of their email address) because IIS uses IUSR_computername to provide anonymous access. You can specify a different account for anonymous access. You can also restrict access to resources using NTFS permissions. Note that even if you enable Basic authentication, Anonymous authentication takes precedence, and IIS 5.0's FTP server will use it first.

Here are three "hot tips" about FTP site feature configurations that I found in the MSDN Library:

  • Creating User Directories: To automatically place a user in his or her own FTP directory upon login, create a virtual FTP directory with the same name as the username.
  • Limiting Access: You can lock anonymous users into the FTP directory so they can't browse outside it while enabling an authenticated client (who isn't using FrontPage) to upload files to the same FTP directory. To limit access, perform the following steps:
  1. In Windows Explorer, place the FTP directory under the wwwroot directory.
  2. In the IIS snap-in, point the FTP server to the FTP directory.
  3. Also in the IIS snap-in, create a second FTP server under the first and give the second one the same name as the username of the client who wants to upload files.
  4. Point the second FTP server to the FTP directory (the same one as in the second step).
  5. 5. In Windows Explorer, set the following NTFS permissions on the FTP directory: Give Anonymous FTP User Full Control on the FTP directory and deny all permissions on the root directory.

After a user logs on, IIS places the authenticated client in the virtual FTP site of the same name. The client has full control over directory content and can upload files. An anonymous user who logs on can read the files but will have no control over them and won't be able to browse outside the virtual FTP directory.

  • Creating Welcome Messages: On the Messages tab of FTP Site Properties, you can create a welcome message that users will see when they enter the FTP site.
  • One of the main drawbacks of using FTP as a content management solution on secured sites is that the transfer loses file permissions (ACLs) and attributes. If you secure a Web page by putting ACLs on it on your development or staging server and use FTP to copy that page to a production server, you lose the file permissions. If you use Visual SourceSafe (VSS) on your development server and you author a page and check it in, VSS sets a read-only attribute on the file. If you use FTP to transfer that file to a production server, you lose that read-only attribute.

    Microsoft Content Replication System, which shipped in Microsoft Site Server 3.0 and now ships in Microsoft Application Center Server 2000, overcomes the problem. It retains file permissions and attributes when copying files. CRS has a file transfer mechanism very similar to FTP's, and because of its superior capabilities, Microsoft uses it extensively internally—and has for years—in content management solutions.

    Related Content:

    ARTICLE TOOLS

    Comments
    • Wiz Kid
      8 years ago
      Jun 12, 2004

      I have a problem. I wish to run to ftp servers using just one IIS server. I also only have one domain name. I can easily set up one ftp site that refers to the correct place using :21 at the end on my url. However, when i try to get the other working using a different suffix (and yes i have forwarded the port on my router) it doesn't take me to my server, instead it just times out. If anyone can help me please e-mail me at albleasdale@msn.com. Thank you in advance to anyone with an suggestions

    • Rahul
      8 years ago
      May 20, 2004

      The information provided for an article is really good, but it seems incomplete. You should give more examples and tips so that we can work step by step.

    • Ryan Trumbull
      9 years ago
      Dec 03, 2003

      How do I create a Message that is viewed before a person tries to login to the FTP Server in IIS5?

    • Vivek A Sai
      11 years ago
      Oct 29, 2001

      How do I create mirror servers for my FTP Site [on Windows 2000 Server]????

    You must log on before posting a comment.

    Are you a new visitor? Register Here

    advertisement

    advertisement

    White Papers

    Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

    Essential Guides

    Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

    Web Seminars

    What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

    eLearning Series

    We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
    Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

    Subscribe to Windows IT Pro!

    Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.