Build FTP Service and user authorization on Win7 IIS-REPRINT!!

Source: Internet
Author: User
Tags ftp site file transfer protocol

Original address: http://blog.sina.com.cn/s/blog_6cccb1630100q0qg.html

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", Go to "authentication and authorization Information" link, "Authentication" select "Anonymous" and "basic", "authorized" "Allow access" select "All Users", "Permissions" select "Read":

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

Configuration and authorization of the FTP site

1, select the FTP site to configure, click on the "Content view", found that the content is empty:

This is because so far we have not added anything in the folder associated with FTP, opened the corresponding folder in Windows Resource management, and added several test directories:

When you refresh the content view in IIS, we see that the new folder appears in the content view:

2, we open the Windows Explorer or browser, enter ftp://127.0.0.1 in the Address bar (if it is remote access, enter the IP address of the server), we can see the directory on the FTP server:

3, double-click the "Development Documents" folder to enter the file, we view the local files copied to the folder, because the permissions are not enough (previously only set the "read" permission), the system prompt error:

4, then we need to set the FTP site permissions. For convenience, 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.

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".

4, go back to Windows Explorer, go to the "FTP://127.0.0.1/Development Documents" folder, click on the "Login" submenu of the context menu, pop up the "Login Status" dialog, enter the user name ftpuser and the corresponding password, click the "Login" button to log into the FTP folder:

5, at this time, in the attempt to copy files or folders to the FTP directory, still pop up "insufficient permissions" error hint, this is why? The original FTP permissions are on the basis of Windows user rights, so we want to in the explorer, for the FTP corresponding folder for the specific user to add the corresponding permissions. In Explorer, select the relevant folder, click on the "Properties" submenu in the context menu, pop up the "Properties" dialog box, and then change to "Security" tab:

Click "Edit" button, pop up the Permission Edit dialog box, enter Ftpuser, and "Check name":

Click the "OK" button, Ftpuser is added to the list of users, in the "Ftpuser Permissions" list, select "Modify" permission, click the "OK" button to complete the Windows folder authorization:

At this point, once again, using Ftpuser to log in to the FTP://127.0.0.1/development documentation, we can complete the new folder and copy the files to the folder.

Build FTP Service and user authorization on Win7 IIS-REPRINT!!

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.