Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Microsoft IIS Site

Embed Size (px)

Citation preview

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    1/22

    Author: Robert McMurray

    Published on January 15, 2008 by iisteam

    Updated on November 01, 2011 by iisteam

    Tags: FTP

    Using FSRM Folder Quotas with FTP in IIS 7

    Home > Learn > Deploying Web Sites on IIS > Publishing Content to Web Sites > FTP 7 for IIS 7 > Using FSRM Folder Quotas with FTP in IIS 7

    Compatibility

    Version Notes

    IIS 7.5 The FTP 7.5 service ships as a feature for IIS 7.5 in Windows 7 and Windows Server 2008 R2.

    IIS 7.0The FTP 7.0 and FTP 7.5 services were shipped out-of-band for IIS 7.0, which required downloading and installing the service from the followingURL: http://www.iis.net/download/FTP (http://www.iis.net/download/FTP).

    Introduction

    Microsoft has created a new FTP service that has been completely rewritten for Windows Server 2008. This FTP service incorporates many new features

    that enable web authors to publish content better than before, and offers web administrators more security and deployment options.

    This document walks you through using the folder-based quotas provided by Windows Server 2008's File Server Resource Manager (FSRM) with the new

    FTP service to create a publicly accessible FTP site with a fixed quota size. It contains:

    Create a New FTP Site (http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ftp/#01)

    Installing and Configuring the File Server Resource Manager Service (http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ftp/#02)

    More Information (http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ftp/#03)

    Note: This walkthrough contains a series of steps in which you log on to your FTP site using the local administrator account. These steps should only be

    followed on the server itself using the loopback address or over SSL from a remote server. If you prefer to use a separate user account instead of the

    administrator account, you must create the appropriate folders and set the correct permissions for that user account when necessary.

    Prerequisites

    The following items are required to be installed to complete the procedures in this article:

    IIS 7.0 must be installed on your Windows 2008 Server 2008, and the Internet Information Services Manager must be installed.

    The new FTP service. You can download and install the FTP service from the http://www.iis.net/ (http://www.iis.net/) web site using one of thefollowing links:

    FTP 7.5 for IIS 7.0 (x64) (http://go.microsoft.com/fwlink/?LinkId=143197)

    FTP 7.5 for IIS 7.0 (x86) (http://go.microsoft.com/fwlink/?LinkId=143196)

    You must create a root folder for FTP publishing:

    Create a folder at "C:\inetpub\ftproot"

    Set the permissions to allow anonymous access:

    Open a command prompt.

    Type the following command:ICACLS "C:\inetpub\inetpub\ftproot" /Grant IUSR:R /T

    Close the command prompt.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    2/22

    Note: The settings listed in this walkthrough specify "C:\inetpub\ftproot" as the path to your FTP site. You are not required to use this path; however, if

    you change the location for your site you will have to change the site-related paths that are used throughout this walkthrough.

    Create a New FTP Site

    In this section we create a new FTP site that can be opened for Read-only access by anonymous users and Read/Write access by the administrator

    account.

    Step 1: Use the FTP Site Wizard to Create an FTP Site with Anonymous Authentication

    Create an FTP site where users will be able to access content anonymously. Use the following steps:

    Go to the IIS 7.0 Manager. In the Connections pane, click the Sites node in the tree.1.

    Right-click the Sites node in the tree and clickAdd FTP Site, or clickAdd FTP Site in theActions pane.

    (/file.axd?i=444)

    2.

    When theAdd FTP Site wizard appears:

    Enter "My New FTP Site" in the FTP site name box, then navigate to the "C:\inetpub\ftproot" folder that you created in the Prerequisitessection.Note: If you choose to type in the path to your content folder, you can use environment variables in your paths; for example:"%SystemDrive%\inetpub\ftproot"

    ClickNext.

    3.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    3/22

    (/file.axd?i=660)

    On the next page of the wizard:

    Choose an IP address for your FTP site from the IP Address drop-down, or choose to accept the default selection of "All Unassigned." Becauseyou will be using the administrator account later in this walk-through, you make sure that you restrict access to the server and enter the localloopback IP address for your computer by typing "127.0.0.1" in the IP Address box.

    You would normally enter the TCP/IP port for the FTP site in the Port box. For this walk-through, you will choose to accept the default port of21.

    For this walk- through, you will not use a host name, so make sure that the Virtual Host box is blank.

    Make sure that the Certificates drop-down is set to "Not Selected" and that the Allow SSL option is selected.

    When you have completed these items, clickNext.

    (/file.axd?i=661) (/file.axd?i=1616)

    4.

    On the next page of the wizard:

    SelectAnonymous for theAuthentication settings.

    For theAuthorization settings, choose "Anonymous users" from the Allow access to drop-down, and select Read for the Permissions

    5.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    4/22

    option.

    When you have completed these items, clickFinish.

    (/file.axd?i=662)

    Go to the IIS 7.0 Manager. Click the node for the FTP site that you created. The icons for all of the FTP features display.

    (/file.axd?i=448)

    6.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    5/22

    Step 2: Add Basic Authentication to your FTP site

    We need to add Basic Authentication so that users can log in. To do so, use the following steps:

    Go to the IIS 7.0 Manager. Click the node for the FTP site that you created earlier. Double-click the FTP Authentication icon to open the FTPauthentication feature page.

    (/file.axd?i=449)

    1.

    When the FTP Authentication page displays, highlight Basic Authentication. ClickEnable in theActions pane.2.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    6/22

    (/file.axd?i=450)

    Go to the IIS 7.0 Manager. Click the node for the FTP site to display the icons for all of the FTP features again.3.

    We must add an authorization rule so that the administrator can log in. Double-click the FTP Authorization Rules icon to open the FTPauthorization rules feature page.

    4.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    7/22

    (/file.axd?i=451)

    When the FTP Authorization Rules page displays, clickAdd Allow Rule in theActions pane.5.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    8/22

    (/file.axd?i=452)

    When theAdd Allow Authorization Rule dialog box displays:

    Select Specified users, then type "administrator" in the box.

    For Permissions, select both Read and Write.

    ClickOK.

    6.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    9/22

    (/file.axd?i=453)

    Step 3: Show Available Bytes for the FTP Site

    We must configure the FTP site so that users will be able to see the available bytes for the site. Use the following steps:

    Go to IIS 7.0 Manager. Click the node for the FTP site that you created earlier. Double-click the FTP Directory Browsing icon to open the FTP directorybrowsing page.

    1.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    10/22

    (/file.axd?i=454)

    Check the box forAvailable bytes, then clickApply in theActions pane.2.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    11/22

    (/file.axd?i=455)

    Summary

    To recap the items that you completed in this step:

    You created a new FTP site named "My New FTP Site", with the site's content root at "C:\inetpub\ftproot".1.

    You bound the FTP site to the local loopback address for your computer on port 21, choosing not to use Secure Sockets Layer (SSL) for the FTP site.2.

    You created a default rule for the FTP site to allow anonymous users "Read" access to the files.3.

    You added an authorization rule that allows the administrator account both "Read" and "Write" permissions for the FTP site.4.

    You added Basic Authentication to the FTP site.5.

    You configured the FTP site to display the available bytes to users.6.

    Installing and Configuring the File Server Resource Manager Service

    This section of the walkthrough leads you through the steps to install the File Server Resource Manager (FSRM) service and configure a folder quota.

    Step 1: Install the File Server Resource Manager (FSRM)

    In Server Manager under Roles, clickAdd Role in the Roles Summary.1.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    12/22

    (/file.axd?i=458)(/file.axd?i=1115)

    In the Select Server Roles dialog, checkFile Services. ClickNext.2.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    13/22

    (/file.axd?i=1116) (/file.axd?i=459)

    On the Introduction to File Services page, clickNext.

    (/file.axd?i=460)(/file.axd?i=1117)

    3.

    On the Select Role Services page, check the File Server Resource Manager service. ClickNext.4.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    14/22

    (/file.axd?i=461)(/file.axd?i=1118)

    On the Configure Storage Utilization Monitoring page, click the Options button.5.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    15/22

    (/file.axd?i=1119) (/file.axd?i=663)

    In theVolume Monitoring Options dialog, check the Quota Usage Report option. ClickOK.

    (/file.axd?i=664)(/file.axd?i=1120)

    6.

    On the Configure Storage Utilization Monitoring page, clickNext.7.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    16/22

    (/file.axd?i=1121) (/file.axd?i=665)

    On the Set Notification Options page, customize the location for your reports and email settings. ClickNext.

    (/file.axd?i=666)

    8.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    17/22

    (/file.axd?i=1122)

    On the Confirm Installation Selections page, verify your choices. ClickInstall.

    (/file.axd?i=667)(/file.axd?i=1123)

    9.

    When the installation is completed, clickClose.10.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    18/22

    (/file.axd?i=1124) (/file.axd?i=467)

    Expand the Roles node in Server Manager. You should now see the File Services role displayed with all of its related information.11.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    19/22

    (/file.axd?i=668)

    Step 2: Creating a Folder Quota

    Under the WindowsAdministrative Tools menu, clickFile Server Resource Manager.

    (/file.axd?i=469)

    1.

    In the File Server Resource Manager, expand Quota Management in the tree view and clickQuotas, then clickCreate Quota in the Actionspane.

    2.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    20/22

    (/file.axd?i=470)

    In the Create Quota dialog box, navigate to the "C:\inetpub\ftproot" folder that you created in the Prerequisites section. Choose a template fromthe list of available templates to apply to your folder. ClickCreate.

    3.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    21/22

    (/file.axd?i=471)

    The File Server Resource Manager should now display the quota settings for your FTP site.4.

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft

    22 5/13/2012

  • 7/28/2019 Using FSRM Folder Quotas With FTP in IIS 7 _ FTP 7 for IIS 7 _ Publishing Content to Web Sites _ the Official Micro

    22/22

    (/file.axd?i=472)

    Summary

    To recap the items that you completed in this step:

    You added the File Services role to your server, and added the File Server Resource Manager role service.1.

    You added a folder quota for your FTP site's content directory.2.

    Once folder quotas have been enabled for a content path for an FTP site and the site has been configured to display the available bytes, FTP will return the

    available bytes every time a directory listing command is sent by and FTP client.

    Note: Some graphical FTP clients may not show this information unless they support some form of viewing the activity log for the FTP session.

    More Information

    For more information, please see the Step-by-Step Guide for File Server Resource Manager in Windows Server 2008 (http://technet2.microsoft.com

    /windowsserver2008/en/library/08723815-8560-404b-9c9c-0abc636a5f241033.mspx) topic on Microsoft's web site.

    Related Content

    Articles

    Developing for FTP 7.5 and FTP 8.0 (/page.aspx/590/developing-for-ftp-75-and-ftp-80/)

    FTP 7 for IIS 7 (/page.aspx/356/ftp-7-for-iis/)

    FTP Extension - Video Walkthrough (/page.aspx/525/ftp-extension---video-walkthrough/)

    What Is New for Microsoft and FTP in IIS 7? (/page.aspx/310/what-is-new-for-microsoft-and-ftp-in-iis-7/)

    g FSRM Folder Quotas with FTP in IIS 7 : FTP 7 for IIS 7 : Publishi... http://learn.iis.net/page.aspx/307/using-fsrm-folder-quotas-with-ft