Using IIS to build an FTP server under Win7

Source: Internet
Author: User
Tags ftp site

Configuring a full FTP server is complex, and you can use the FTP service that comes with your Windows system (the Web and FTP services that Windows comes with are turned off by default). Some time ago, in order to share files with others, to create an FTP server and tangled, groping for a long time, and finally successfully set up an FTP server, share the following, the shortcomings please continue to add ~

Tools/Materials
    • Win7 system
Method/Step
  1. 1

    First, install the FTP component

    since Win7 does not install the FTP component by default, the first step in setting up FTP is to install the FTP component

    Click: In the Start menu → control Panel → programs and features → turn Windows features on or off. Check "FTP Server" and "FTP Service" "FTP Extensibility", "Web management Tools" option under All, click "OK", install the FTP component. As shown

  2. 2

    Second, add the FTP site

    Click: Right click on "Computer"-"Manage-" click "Services and Applications" select "Internet Information Services (IIS) Manager"-Click to select "Web Site", and on it right click on "website"-"click" Add FTP Site ", the" Site Information "interface appears,

  3. 3

    Add the FTP site name, and set the physical path of the FTP site, click "Next", the "Bindings and SSL Settings" interface appears, as shown in

  4. 4

    IP is set to the local IP address, the port with the FTP default 21,ssl tick "None". Click "Next" and the "Authentication and Authorization Information" interface appears, as shown in:

  5. 5

    If you just want to set up simple FTP, both "Authentication" and "Authorization" check "anonymous" and set the appropriate permissions for anonymous. In this example, also to the FTP configuration account, as well as account permissions, so "Authentication" tick "basic", "authorization" tick "not selected", click "Finish" to complete the FTP site settings.

  6. 6

    Third, set up FTP account and permissions

    Because the FTP account under Win7 is a Windows user account. Therefore, the first need to add two user accounts, one is view, you can browse, download FTP content, one is admin, Full Control ftp.

    1, click: Right click "Computer"-"management-" Computer Management. On the left side of the Computer Management interface, click on: System Tools-Local Users and groups-users, display all users on the right. As shown in the following:

    2. Right click on "User" and "New user" appears as follows:

    3. Enter view in user name, set good password, remove tick "User must change Password next time", tick "user Cannot change password" and "Password Never Expires". Click "Create" to complete the creation of the user view. The same steps to create the Admin user. Because Windows adds a user to the Users group by default, you can remove the two users from the Users group. By clicking on "group" in the "Computer Management" section, find the users in the list on the right, double click on it, the following interface appears, point user view, click "Delete", click the user admin, click "Delete". Remove two users from the Users group.

  7. 7

    Next, in the FTP site, add permissions to view and admin.

    Click: Right click on "Computer"-"Manage-" click "Services and Applications"-"Internet Information Services (IIS) Manager". Click the new FTP site that you just created. Click "FTP Authorization Rules" in the As shown in the following:

  8.  

           1, click Edit Permissions on the right, and add user rights to the FTP site folder. In the pop-up window, click on the "Security" tab. , as shown in:

           2, point "edit", the window that appears with permissions, as follows:  

           3, click Add, and in the Enter the object name to select "Enter view, click" OK "to add the view user. As shown below:

           4, added view user, default is only read, listed permissions. Add the Admin user in accordance with the law to add Full Control permissions to the Admin user. As shown below:

  9.  

           1, and then back to the Internet Information Services (IIS) Manager window, Double-click the FTP authorization rule that you just selected to authorize view and admin in the FTP site. As shown below:

           2, click "Add Allow Rule" on the right, in the popup window, tick "specified user", enter view, and in "Permissions" below, tick "read". As follows:

             Click OK to add the view user to the FTP site, and the appropriate permissions are read. Add the Admin user to the FTP site, and the appropriate permissions are read and write.      

           3, the site settings for FTP are complete. The site folder is the F:\ftp,view user has read (browse and download) permissions, the Admin user has read and write (upload and delete) permissions. Of course, you can add users and corresponding permissions according to the actual situation, you can also add users to groups, and then set permissions for the group. You can also add anonymous users, and so on.

     4, however, things are far from over. If you're in a hurry to do the test. Will find that the test is normal on this machine, but the other machine test FTP, you will find that the connection is not. The problem is the firewall under Win7. If you turn off the firewall, you'll find that FTP is back to normal, but you can't just turn off the Win7 firewall because you want to use FTP. If you want to use the Win7 when the firewall is open, you have to set it up in the firewall.

  10. Iv. Firewall Settings for Win7

    1. Click: Control Panel-"Windows Firewall." Click "Allow programs or features through Windows Firewall" on the left, select "FTP Server" and check the two boxes below, as follows:

    2, click on the "Allow to run another program", in the pop-up window, click "Browse", and then the top right, in the Windows Directory search "Inetinfo.exe", found that there are several "inetinfo.exe" in different paths, are added, That is, the Internet infomation Services in. Select the two boxes that follow. Because FTP is a component of IIS under Win7, IIS must also be set to allow in the firewall. IIS is not in the default list, so it has to be added manually.

  11. 3. Because FTP uses 21 ports, the outbound and inbound port rules are added to the firewall.

    4. In Windows Firewall window, click "Advanced Settings" on the left, pop up the Advanced Security Firewall window, click "Inbound Rules" on the left, as shown in:

  12. 5, click "New Rule" on the right, the wizard interface appears, check "Port",

  13. 6, click "Next", Check the TCP (FTP TCP protocol), and then check the specific local port, input (FTP is 21 port):

  14. 7. Click "Next", tick "Allow connection",

  15. 8, click "Next", the default is selected,

  16. 9, click "Next", in the name of the input name, in this case is 21,

    Click "Done" to complete the settings of the inbound rules, in the same way, to complete the outbound rule settings, the same is 21 port. At this point, the firewall on the Win7 has been set up, the test is basically normal.

  17. Note: The above content is collected on the internet, coupled with my pro-test ~ If the FTP settings there are any problems, welcome to Exchange ~

Using IIS to build an FTP server under Win7

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.