Training
Module
Configure and manage file access - Training
This module describes how to control access to files and folders using permissions.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
by Keith Newman and Robert McMurray
File Transfer Protocol (FTP) simple is a protocol for transferring files between computer systems. IIS 8 includes an FTP server that is easy to configure.
The document shows how to install and configure the FTP server on an existing IIS 8 web server. The first two steps are required. All other steps are optional but recommended.
To get the most from this tutorial, you must have access to a computer that is running one of the following operating systems:
This step shows you how to install the FTP service on an existing IIS web server that runs on either Windows Server 2012 or Windows 8.
Once the FTP service is installed on your IIS web server, you can add one or more FTP sites. Add an FTP site when you want to enable clients to transfer files to and from a site by using the File Transfer Protocol (FTP).
Note
Because FTP settings are contained in the sites section, changing any FTP setting also forces website application recycling. If you want to avoid this side effect, add a site that is configured exclusively for FTP, instead of for both HTTP and FTP.
Open IIS Manager.
In the Connections pane, expand the server node and click the Sites node.
In the Actions pane, click Add FTP Site to open the Add FTP Site wizard.
On the Site Information page, in the FTP site name box, type a unique friendly name for the FTP site.
In the Physical path box, type the physical path or click the browse button (...) to locate the physical path of the content directory.
Click Next to open the Binding and SSL Settings page.
Under Binding, in the IP Address list, select or type an IP address if you do not want the IP address to remain All Unassigned.
In the Port box, type the port number.
Optionally, in the Virtual Host box, type a host name if you want to host multiple FTP sites on a single IP address. For example, type www.contoso.com
.
Clear the Start FTP site automatically box if you want to start the site manually.
Under SSL, from the SSL Certificate list, select a certificate. Optionally, click View to open the Certificates dialog box and verify information about the selected certificate.
Select one of the following options:
Click Next to open the Authentication and Authorization Information page.
Under Authentication, select the authentication method or methods that you want to use:
Under Authorization, from the Allow access to list, select one of the following options:
If you selected an option from the Allow access to list, select one or both of the following permissions:
Click Finish.
Change an FTP site default value when you want new FTP sites to use a different default value.
Note
When you change a default value, existing sites are not overridden with the new value. Change the value for any existing sites manually.
The following table lists the settings available for configuration in the FTP Site Defaults dialog box.
Setting Category | Setting Name | Description |
---|---|---|
General | Allow UTF-8 | Specifies whether to use UTF8 encoding. Default is true. |
General | Start Automatically | If true, the FTP site is started upon creation or when the FTP service is started. Default is true. |
Connections | Control Channel Time-out | Specifies the time-out (in seconds) when a connection times out due to inactivity. |
Connections | Data Channel Time-out | Specifies the time-out (in seconds) when the data channel times out due to inactivity. |
Connections | Disable Socket Pooling | Specifies whether socket pooling is used for sites distinguished by IP address rather than port number or host name. |
Connections | Max Connections | Specifies the maximum simultaneous connections to a server. |
Connections | Reset On Max Connections | Specifies whether to disconnect FTP session when sending max connections response. |
Connections | Server Listen Backlog | Specifies the number of outstanding sockets that can be queued. |
Connections | Unauthenticated Time-out | Specifies the timeout (in seconds) between when a new connection is made and authentication succeeds. |
Credential Caching | Enabled | Specifies whether credential caching is enabled for the FTP service. |
Credential Caching | Flush Interval | Specifies the cache lifetime, in seconds, for the credentials that are stored in the cache. |
File Handling | Allow Reading Files While Uploading | Specifies whether files can be read while being transferred to the server. |
File Handling | Allow Replace on Rename | Specifies whether files can overwrite other files when renamed. |
File Handling | Keep Partial Uploads | Specifies whether to keep files that have been partially uploaded. |
Use the FTP Firewall Support feature to configure the following settings that enable the FTP server to accept passive data connections from a firewall:
Open IIS Manager.
In the Connections pane, select the server node.
In Features View, double-click FTP Firewall Support.
In the Data Channel Port Range box, type a range of port numbers (separated by a hyphen). For example, type 5000-6000. Or type 0-0 to use the default port range specified in Windows TCP/IP settings.
Note
Do not use ports 0-1024 because these ports are reserved ports.
In the External IP Address of Firewall box, type the IP address of your firewall.
In the Actions pane, click Apply.
The user isolation feature allows you to configure your FTP server to isolate users, which prevents users from accessing the directories of other users on the same FTP site. If you choose not to isolate users, they share a common directory structure.
For example, you can choose not to isolate users on a site that offers only download capabilities for shared content or for a site that does not require the protection of data between users.
If you want to isolate users on your site, you can choose one of the following isolation options:
Open IIS Manager.
In Features View, double-click FTP User Isolation.
If you don't want to isolate users, under Do not isolate users. Start users in, select one of the following options:
If you want to isolate users, under Isolate users. Restrict users to the following directory, select one of the following options:
If you selected FTP home directory configured in Active Directory in the previous step, click the Set button, and then type a user name and password in the User name and Password boxes of the Set Credentials dialog box that has access to your Active Directory server. Enter the password again in the Confirm Password box, then click OK.
In the Actions pane, click Apply.
The directory browsing feature gives you control over what is displayed when users browse FTP directories.
Open IIS Manager.
In the Connections pane, select either the server level or the site level.
In Features View, double-click FTP Directory Browsing.
On the FTP Directory Browsing page, under Directory Listing Style, select one of the following options:
Under Directory Listing Options, select the information you want to display in directory listings. You can select any of the following options:
In the Actions pane, click Apply.
This feature enables you to configure the maximum number of failed sign-on attempts that you allow within a specified time before the IP address is denied.
Use the FTP Request Filtering feature page to define the request filtering settings for your FTP site. FTP request filtering is a security feature that allows internet service providers (ISPs) and application service providers to restrict protocol and content behavior.
You can use the FTP Logging feature to configure logging features at the server or site level, and to configure logging settings.
Open IIS Manager.
In the Connections pane, select either the server level or the site level.
In Feature View, double click the FTP Logging icon.
In the One log file per menu, select either Site or Server.
Under Log File, click Select W3C Fields, and then select the information you want go log.
Under Directory, either type the path to the base folder where you want the FTP log files stored, or click Browse to browse to the base folder.
Under Encoding, select either UTF8 (single-byte and multi-byte characters) or ANSI (single-byte characters only).
Under Log File Rollover, select how you want FTP to create new log files from the following list:
Select the Use local time for file naming and rollover check box when you want log file naming and rollover to be based on the local time zone instead of Coordinated Universal Time (UTC).
In the Actions pane, click Apply.
Use the FTP Messages feature to modify the settings for messages sent when a user connects to your FTP site.
In the Connections pane, select either the server level or the site level.
In Features View, double-click FTP Messages.
On the FTP Messages page, under Message Behavior, select how you want your FTP messages to behave. You can select any of the following options:
Suppress default banner: Specifies whether to display the default identification banner for the FTP server.
Support user variables in messages: Specifies whether to display a specific set of user variables in FTP messages. The following user variables are supported:
Show detailed messages for local requests: Specifies whether to display detailed error messages when the FTP client is connecting to the FTP server on the server itself (local host).
Under Message Text, type messages in the following boxes:
In the Actions pane, click Apply.
Training
Module
Configure and manage file access - Training
This module describes how to control access to files and folders using permissions.