Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


December 19, 2000

Running an FTP Server on IIS 5.0


RSS
Subscribe to Windows IT Pro | See More FTP Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

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.

End of Article



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

Vivek A Sai October 29, 2001


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

Ryan Trumbull December 03, 2003


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.

Rahul May 20, 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

Wiz Kid June 12, 2004


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...

Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Microsoft Warns of Windows Version Expirations

Microsoft warned that this year will see three out-of-date Windows versions slip into retirement. ...


IIS and Web Administration Whitepapers Best Practices for SharePoint Backup & Recovery

Meeting Compliance Objectives in SharePoint

Improve SharePoint Performance for Remote Workers

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Managing IT Across Multiple Locations

Check out our list of Free Email Newsletters!

IIS and Web Administration eBooks Web Filtering: An Assessment

Understanding and Leveraging Code Signing Technologies

Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Related IIS and Web Administration Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement