Teach you step-by-step use of IIS to build a powerful FTP server to support multi-user landing and management.
Using IIS to erect an FTP server
1. Install FTP server
Step: Start--Control Panel--Add or Remove Programs--Add/Remove Windows Components--Select Application Server--Select Internet Information Services (IIS)--Select the File Transfer Protocol (FTP) service Follow the Windows Components Wizard to install.
2. Configure the default FTP server
Right-click Default FTP Site-Properties to make important settings such as home directories, security accounts, messages, and so on in the dialog box.
(1) Set the maximum number of user connections for an FTP site: FTP site tab-FTP site connection
(2) Set the login Welcome message: Message tab
(3) Setting Allow Anonymous access: "Security Accounts" tab-Allow anonymous connections
(4) Set the FTP site home directory path and access rights: Home Directory tab
(5) Deny or allow certain users to access the site: Directory Security tab
3. New FTP Server
Right-click FTP Server-new/FTP Site-Follow the wizard settings.
3 Methods of user isolation:
Do not isolate users: when all users log on to the FTP site, they are accessing files in the same directory (that is, the home directory of the FTP site).
Isolate users: To create a subfolder for each user in the home directory of the FTP site (the name of the folder must be the same as the user's login name), and after the user logs on to the FTP site, they can only access their subfolders and cannot access other users ' folders to achieve isolation for different users.
Isolating users with Active Directory: to implement isolated users with Active Directory, first require administrators to specify their dedicated home directory for each user in Active Directory, and users must log on to this FTP site with a domain user account. You can only access content in your home directory after you log on, and you cannot access other users ' home directories.
4. Establish the Directory rules for isolating FTP sites:
In the NTFS partition, build a directory as the home directory for the FTP site, create a subfolder named "LocalUser", and create a "public" subdirectory under the "LocalUser" subfolder and a personal folder with the name of each user account.
When you log on to an FTP site anonymously, you can only browse to the contents of the "public" subdirectory, and if you log on to the FTP site with your personal account, you can only access your subfolders.
Four, FTP access
(1) Directly Enter the Ftp://IP address (or domain name) in the browser
(2) Use CuteFTP or other FTP download and upload software to verify.
(3) Log on to the FTP server using the DOS command line
Start-run-cmd-"FTP"-"Open IP address (or domain name)"-enter username and password;
Enter the "dir" command to view the file directory of the current FTP site;
Enter "Get filename" to download the file;
Enter "Disconnect" to disconnect from the server.
Experiment 1:
Create the "non-user isolation" mode of the FTP site, the site's main directory for C:\FTP1, allow simultaneous connection number of 10, welcome message for the "Welcome to Shaoxing Vocational Education center of the FTP site!" "The exit message is" Welcome to come back next time! ”。
Experiment 2:
Create an FTP site in user isolation mode.
(1) New two users: A1, A2
(2) Create a "FTP2" folder in the C-packing directory as the home directory for the FTP site, create a "LocalUser" folder within that folder, and create a "public", "A1", "A2" three folders in the LocalUser folder.
Set the port range for FTP passive mode on IIS
Windows Server 2003
First enter the admin scripts of IIS, default is in the C:\Inetpub\AdminScripts directory
You can find the Adsutil.vps script. If you don't have this script, reload IIS
or copy the previous one from another server.
Perform the following script to set the passive mode port range:
Adsutil.vbs set/msftpsvc/passiveportrange "10000-10050"
Restart the FTP service for IIS.
It is important to note that the passive port range must be a 5000-65535-range port
Setting another range of ports is invalid.
Windows server/advanced Server
1. Start Registry Editor (Regedt. exe).
2. Locate the following registry key:
Hkey_local_machine\system\currentcontrolset\services\msftpsvc\parameters\
3. Add a REG _ SZ type value named "PassivePortRange" (without quotes).
4. Close Registry Editor.
5. Restart the FTP service.