Microsoft FTP7.5 for iis7.x Some of the problems and solutions in use _FTP server

Source: Internet
Author: User
Tags ftp ftp site parent directory ftp client microsoft website
Recently installed on the IIS7.0 Microsoft FTP7.5, but the process of using FTP7.5, but encountered a lot of problems, online to find useful information is not much, after an afternoon groping, here to share out, hoping to help those in the use of Microsoft A friend who encounters a similar problem when FTP7.5.

This article only describes the setup issues for the Microsoft FTP7.5 for iis7.x, including FTP site setup and settings, user rights settings, and so on.

The contents of this article do not cover the following:

      Other alternative Microsoft FTP7.5 feature software installation and use
      How to create Windows users and Groups
      How to install iis7.x
      How to install the Microsoft FTP7.5 for iis7.x
      How to set up and use the SSL features of Microsoft FTP7.5
      How to set up and use the Microsoft FTP7.5 user Isolation Feature

If you want to know more about this, you can refer to the http://www.iis.net/and Microsoft website for instructions.

The goal I want to achieve:

Create the FTP Users group in the system and create Bimoo, bimooftp two users under the user group.

The user Bimoo can view a list of the contents of the entire FTP site, with read and write access to the child applications in the site, upload, but not to view and read any content other than the child application upload; Bimooftp has read and write access to the entire site.

We'll do it the right way first, and the article will finally list some of the problems that are encountered during the use process.

Open IIS Manager, right click on the "server name" or "Web site" node, select "Add FTP site", the following figure:

Then enter the FTP site name, select the physical path of the content directory, click the "Next" button, pop-up the following window:

Do not select the "Enable Virtual Host Name" item above, and if selected, the following error occurs when you use an FTP client connection when you set up a Web site:

SSL can be set according to the actual situation, select "Allow SSL" here, then click "Next" button, pop-up the following window:

Here, enable the Basic authentication [authentication] type, select Allow "Specify user [Specified users]" access in the authorization [Authorization] option, and enter the username, multiple user names using commas [,], and select the appropriate permissions [ Permissions], click the "Finish" button. Then think of this FTP site to add two "application" or "virtual directory", this time an FTP site is established.

The FTP site name I set up here is "Ftp_server", which has sites and upload two applications, roughly structured as shown in the following figure:

Let's start with the issue of user authorization, I do not allow anonymous user access here, so I am in the site "FTP Authentication" in the "Basic Authentication" authentication type, disabled the "Anonymous authentication "。 Then add the authorization rule in FTP Authorization rules, as shown in the following figure:

Add authorization rules to the FTP Authorization rules in the application sites in Ftp_server, as shown in the following figure:

Add authorization rules to the FTP Authorization rules in the application upload in Ftp_server, as shown in the following figure:

Description: because the user bimooftp and Bimoo are both subordinate to the FTP Users group, and they all have Read,write permissions, you can also set the rules directly to the user group FTP users. In addition, the child applications and virtual directories automatically inherit the authorization rules for the entire FTP site, where I delete the inherited rules and add my own rules.

There is also a problem, in the site's "FTP Directory Browsing", "directory Listing Style" must choose "ms-DOS", if you choose "UNIX", then use the FTP client connection, the directory and file list can not be listed. The following figure:

OK, if you install the steps above, you should achieve the goal, the user Bimoo can read and write upload applications, can view the entire FTP site content list, but cannot view or read and write sites application content Bimooftp users have View and read-write access to this site. Now try it with the FTP client.

Let's start with the problems I've encountered during the installation process:

    Improper user Authorization

    When the user is initially authorized, give the user bimooftp the entire FTP site read and Write permissions, not to the user Bimoo grant any permissions, and then give the user Bimoo grant the FTP station IDEA application sites read and Write permissions. The user bimooftp can connect to the FTP site, but the following error occurs when the user Bimoo connecting the child application sites:

    Workaround:

    Grant user Bimoo Read permission at the FTP site level. If you want to authorize a virtual directory or a child application to a user, you must ensure that the user has at least read access to its parent directory or site.

    FTP site bound domain name

    If you bind a domain name to an FTP site, such as ftp://ftp.bmshops.com, the following error occurs:

    Workaround:

    Do not bind the domain name to the FTP site, the host header can be left blank. This can not build multiple FTP sites, do not know whether there is a better way to solve this problem.

    Later, in an article in the official website of IIS, I found the answer to the following article address:

    http://learn.iis.net/page.aspx/320/using-ftp-virtual-host-names/

    Because FTP7.5 provides a virtual host feature similar to the Web Site feature, multiple FTP sites can use 21 ports and the same IP address, so when accessing an FTP site, the username needs to be used virtualhost| Username, otherwise a "503 Valid hostname is expected" error occurs.

    This solves the FTP site binding domain name and the establishment of multiple FTP site problem, haha:

    Improper FTP Site setup

    Initially, the FTP client connection can succeed due to improper setup, but directories and files cannot be listed. Then the net searched, most of them said the FTP client data connection type to passive mode [PASV mode], but still not. It was later found that the directory Listing style was set to UNIX on the FTP server side, and was set to be resolved after MS-DOS.

Reference:

      http://learn.iis.net/page.aspx/320/using-ftp-virtual-host-names/
      Http://learn.iis.net/pa ge.aspx/263/installing-and-configuring-ftp-on-iis-7/

      Basically write these bar, welcome everyone to point out, Pat Brick, open to all!
      Author: Ttzhang (Technology life--Zhang Technical blog)

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.