For ease of use, the established FTP site not only allows anonymous users to access, but also enables "read" and "write" permissions on the home directory. In this way, anyone can read and write without any constraints, and a mess will inevitably occur. If you use IIS 6.0, you only need to create an FTP site that is 'user isolated 'to effectively solve this problem.
"Isolate users" is a new feature of FTP components included in IIS 6.0. The FTP site configured in "user isolation" mode allows the user to log on directly to the user's directory, and the user cannot view or modify the directories of other users.
Create a user account
First, some user accounts are created for FTP users on the Windows Server 2003 server where the FTP site is located, so that they can use these accounts to log on to the FTP site. The procedure is as follows:
In step 5, right-click my computer on the desktop and execute the "manage" command in the pop-up shortcut menu.
Step 2 open the "Computer Management" window and expand the "local users and groups" directory in the left pane. Right-click the "user" folder in the expanded directory, and execute the "new user" command in the shortcut menu to open the "new user" dialog box.
In step 2, enter the user name (such as "Zs") and password (such as "bxjyw") in the relevant editing box "), cancel the "Change Password Upon next login" option, select "user cannot change password" and "Password Never Expires", and click "CREATE ).
In step 2, the next "new user" dialog box is displayed, and several users are added as needed. After the creation, click "close.
Plan directory structure
After creating some user accounts, another key operation was started: Planning the folder structure (to put it bluntly, creating some folders ).
Why is it critical to create a folder? This is because the FTP site in "user isolation" mode has certain requirements on the folder name and structure. First, you must create a folder in the NTFS partition as the main directory of the FTP site (such as "vhost"), and then create a sub-folder named "localuser" under the "vhost" folder, finally, create several personal folders in the "localuser" folder that correspond to the user account one by one.
In addition, if you want to allow anonymous users to log on to the FTP site in "user isolation" mode, you must create a folder named "public" under the "localuser" folder. In this way, anonymous users can log on to the "public" folder to perform read and write operations.
Tip: the sub-Folder name in the home directory of the FTP site must be "localuser", and the user folder created under it must use the same name as the relevant user account, otherwise, the user account cannot be used to log on.
Create an FTP site
So far, all the preparations have been completed. Next, the readers are most concerned about the core link: Creating an FTP site in "user isolation" mode. The procedure is as follows:
In step 2, click Start/Administrative Tools/Internet Information Service (IIS) manager to open the Internet Information Service (IIS) manager window. In the left pane, right-click the "ftp site" option and execute the "New/ftp site" command in the shortcut menu to open the "ftp site creation wizard" Wizard Page, click "Next.
In step 2, type A descriptive language (such as "cceftp") in the "ftp site description" Wizard Page, and click "Next.
Step 2 open the "IP address and port settings" Wizard Page, and select an IP address used to access the FTP site from the "Enter the IP address used by this ftp site" drop-down menu. Keep the default port "21" and click "Next.
In step 5, click "isolate user" on the "FTP user isolation" Wizard Page and click "Next.
Step 2 open the "ftp site home directory" Wizard page, click the "Browse" button to find the "cceftp" folder created in advance, and click "OK/next.
In step 2, select the "write" check box on the "ftp site access permissions" Wizard Page, and click "Next/complete" to complete the creation.
Log on to the FTP site
After the site is created, you can't wait to log on to a computer, Log On As "Zs", and create a document in the directory. To verify whether the document you created is in the folder named "Zs", I also specially open the zookeeper folder under the localusermetadata folder in the Windows Server 2008server server. Here, I see the newly created document (zs.txt ). There is no doubt that the settings are successful.
Tip: User logon can be divided into two types: If you log on as an anonymous user, you can only perform read/write operations in the "public" directory after successful logon; if you log on as a valid user, the user can only perform read and write operations in his/her own directory, and cannot see directories of other users and "public" directories.