Create "User Isolation" Mode FTP Site

  
under IIS 6.0

For the convenience of everyone, the established FTP site not only allows anonymous users to access, but also enables "read" and "write" permissions to the home directory. In this way, anyone can read and write without restrictions, and it is inevitable that there will be a mess. If you use IIS 6.0, simply create a ‘user quarantine’ FTP site to effectively resolve this issue.

"Quarantine User" is a new feature of the FTP component included in IIS 6.0. An FTP site configured in User Isolation mode allows the user to log in directly to the directory belonging to the user, and the user cannot view or modify the directory of other users.

Create a User Account


First create some user accounts for FTP users on the Windows Server 2003 server where the FTP site is located, so that they can use these accounts to log in to the FTP site. The operation steps are as follows:

Step 1 Right-click "My Computer" on the desktop and execute the "Manage" command in the shortcut menu that pops up.

Step 2 Open the Computer Management window and expand the Local Users and Groups directory in the left pane. Then right-click the "Users" folder in the expanded directory and execute the "New User" command in the pop-up shortcut menu to open the "New User" dialog box.

Step 3 In the relevant edit box, type the user name (such as "xiaowei") and password, cancel the "user must change this password when logging in next time" option and check "User can not change the password" and "Password never expires" and finally click the "Create" button (Figure 1).

Step 4 This will bring up the next "New User" dialog box, adding several users as needed. Once created, click the "Close" button. //This article comes from the computer software and hardware application network www.45it.com

Planning directory structure


After creating some user accounts, another key operation has begun. : Planning the folder structure (it is to create some folders). Why

said operation creates a folder is critical, this was created because "user isolation" mode FTP sites have certain requirements for names and folder structure. First you must create a folder in the NTFS partition as the home directory of the FTP site (such as "CceFTP"), then create a subfolder named "LocalUser" under the "CceFTP" folder, and finally in the "LocalUser" folder. Create several personal folders that correspond to the user's account one by one.

In addition, if you want to allow users to log in to the FTP site in User Quarantine mode anonymously, you must create a folder named "Public" under the "LocalUser" folder. After the anonymous user logs in, he can enter the "Public" folder for reading and writing operations (see Figure 2).

Tip: The subfolder name under the FTP site home directory must be "LocalUser", and the user folder created under it must be the same name as the related user account, otherwise it will not be used. User account login.

Installing FTP Components


Creating a "User Isolation Mode" FTP site in Windows Server 2003 requires IIS 6.0 support, but by default IIS 6.0 components are Not installed, so simply talk about how to manually install IIS 6.0 components.

Step 1 Double-click the "Add or Remove Programs" icon in the "Control Panel", click the "Add/Remove Windows Components" button in the "Add or Remove Programs" dialog box that opens, open "Windows" Component Wizard dialog.

Step 2 Locate and double-click the "Application Server" checkbox in the "Components" list, double-click the "Internet Information Services (IIS)" option in the "Application Server" dialog that opens, open Internet Information Services (IIS) dialog box. Locate and check the File Transfer Protocol (FTP) Service check box in the list of subcomponents and click the OK/OK/Next button to start the installation. Finally, click the "Finish" button to end the installation process (Figure 3).

Tip: During the installation process need to insert the Windows Server installation disc or specify the installation source files 2003.

Creating an FTP Site


At this point, all the preparations have been completed, and then the core link that readers are most concerned about: creating an FTP site in User Segregation mode. The specific setup steps are as follows:

Step 1 Click Start/Administrative Tools/Internet Information Services (IIS) Manager to open the Internet Information Services (IIS) Manager window. In the left pane, right-click the FTP Site option, execute the New/FTP Site command in the pop-up shortcut menu, open the FTP Site Creation Wizard wizard page, and click the Next button.

Step 2 Type a line of descriptive language (such as "CceFTP") in the "FTP Site Description" wizard page that opens, and click the "Next" button.

Step 3 Open the “IP Address and Port Settings” wizard page and select an IP address for accessing the FTP site in the “Enter the IP address used by this FTP site” drop-down menu. Keep the default "21" for the port and click the "Next" button.

Step 4 Click the “Isolate User” radio button in the “FTP User Isolation” wizard page that opens, and click the “Next” button (Figure 4).

Step 5 Open the “FTP Site Home Directory” wizard page, click the “Browse” button to find the “CceFTP” folder created in advance, and then click the “OK/Next” button.

Step 6 Check the “Write” check box in the “FTP Site Access Rights” wizard page that opens, and then click the “Next/Finish” button to complete the creation.

Login to the FTP site


The author saw that the site was created and couldn’t wait to come to a computer and successfully log in as the user “xiaowei” and A new document has been created in this directory. In order to verify that the document I created is really in the folder named "xiaowei", the author also deliberately opened the "xiaowei" folder under the "LocalUser" folder in the Windows Server 2003 server, and here I saw that I just created it. Documentation. There is no doubt that the setup is successful.

Tip: User login divided into two situations: You can only read and write in the "Public" directory in the future, if an anonymous user logged in, the login is successful; if is the identity of a valid user By logging in, the user can only read and write in his own directory, and cannot see other users' directories and "Public" directories.


screen.width-333)this.width=screen.width-333" border=0>



Figure 1 Creating a User Account
< BR> screen.width-333)this.width=screen.width-333" border=0>



Figure 2 Directory Structure

screen.width-333) This.width=screen.width-333" border=0>



Figure 3 Select ftp service component

screen.width-333)this.width=screen. Width-333" border=0>



Figure 4 Select User Isolation mode

Copyright © Windows knowledge All Rights Reserved