Setting up an FTP service on IIS

Source: Internet
Author: User
Tags anonymous ftp ftp site web services file transfer protocol

FTP Service

FTP is the short name of the file Transfer Protocol (Files Transfer Protocol), which belongs to the application-layer protocol (typically 21 port numbers) for bidirectional file transfers on the Internet (i.e., file uploads and downloads). There are many servers on the network that provide FTP services to hold a large number of files for others to download. The main role of the FTP service is to allow remote users to connect up, see what files are on the server, and then download, of course, users can also upload local files to the server, shared with others for download. While the FTP service provides upload and download services, administrators can also set different user access rights (read and write) to different folders. Setting up FTP services on Win7 IIS

People who are beginners of web development generally assume that IIS can only provide Web services. In fact, IIS can provide not only Web services, but also other services, such as Network News Service (NNTP), Simple Mail transfer Service (SMTP), and, of course, File Transfer Service (FTP). Just on IIS, the most used is Web services. By default, IIS also installs only Web services, and the FTP service is installed in the IIS environment only if a specific selection is in progress. Let's take a look at the steps to install the FTP service on Win7 IIS:

1. Open "programs and Features" in "Control Panel":


2. Go to the "programs and Features" interface and select "Turn Windows features on or off" on the left to open the Windows Features dialog box:


3, expand the Internet Information Services node, found by default, the "FTP Server" sub-node is not selected, select the child node, click the "OK" button, Windows starts the installation of the FTP service (since all component installation files for Win7 are actually copied to the system during the Win7 installation process, so you do not want the system disk to install the components WinXP):


4. After the installation is complete, you will see the MIcrosoft FTP service services in the Services Administration tool:


to add an FTP site in IIS

1. In the Administrative Tools Internet Information Services (IIS) Manager, select the server and click the "Add FTP site ..." submenu item in the context menu:


2. Enter the name of your desired site in the FTP site name of the Add FTP Site dialog box and select the "Content directory" where you want the file to reside:


3, click the "Next" button to enter the IP address binding and SSL settings, because we do not use SSL, so SSL option select "None", as to what is "SSL", I will explain in the following article:


4, continue to click "Next" to enter the "Authentication and authorization Information" link, "Authentication" select "Anonymous" and "basic",

"Allow access" to "authorize" select "All Users", "Permissions" select "Read":


5. Click "Finish" button to complete the FTP site add process. You will find that there is an additional FTP site that you just added under the IIS Manager Web site node.


configuration and authorization of the FTP site


1, do not want to make all users accessible, you need to set the FTP site permissions (FTP authentication, authorization rules). We add a user named "Ftpuser" to the Windows system, select "Computer" from the "Start Menu" and click on the "Manage" submenu in the context menu:


Open the Users node for local users and groups,


Add a new user named "Ftpuser":


Click the "Create" button to create a new user for your Windows system.

Possible errors:


You need to configure local policies. Step: Control Panel, System and security, administrative tools, local security policy,

The main is to modify the following two policies

1. Password must meet complexity requirements--disable

2. Minimum password length--set to 0


3. In the IIS Manager FTP site, select the folder you want to authorize and switch to "features View", select "FTP Authorization Rules",


Double click on "FTP Authorization Rules", go to "authorization Rules" management interface, click "Add Allow Rule" in the right menu, pop up the dialog box, select "Specified user" and enter "Ftpuser", set its permission to "read" and "write":


Click "OK" to complete the addition of the "Authorization Rules".


External Network access

Need administrator mapping port, yesterday administrator said map 6608 port, local with 6608, external network also use 6608, said to replace IP is available.

Local LAN xx.xx.3.55

External network 218.17.xx.xx

However, it was still a long time to try


Later mapping 21-port eloquence is available, mapped to 2221. Access mode

Intranet ftp://xx.xx.3.55:21/

External network ftp://218.17.xx.xx:2221/
set user name and password access

As a result of the initial setup with anonymous access, the next day, I do not know how to need user name access, do not have access to their own.

Due to reset. However, after setting the user name camera, the port is set to 21 o'clock, and the user name or password is not correct.

When the port is changed to another non-21 port, it can be strange.

At this point, you need the network management to map non-21 ports.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.