Serv-u set up FTP server tutorial _FTP server

Source: Internet
Author: User
Tags anonymous domain name server ftp client file permissions
Other computers on the network can copy, move, create, or delete files and directories by connecting to the FTP server.

10.3.1 install Serv-u and set up an FTP server

After downloading the serv-u application, execute the ServU4004.exe and install it step-by-step as prompted. After the installation is complete, you do not need to restart the computer, the user can directly select the "start" → "program" → "serv-u FTP Server" → "serv-u Administrator" command to start the application, and simple settings. Below we take the current computer (IP address is 192.168.0.1, domain name server.kangbo.com) as an example, the establishment of an FTP server.

The steps to establish an FTP server are as follows:

(1) Start the Serv-u program and open the Serv-u Administrator window, which displays the Setup Wizard dialog box, as shown in Figure 10-13. Use this dialog box to easily complete the basic settings.

Figure 10-13 Setup Wizard dialog box

(2) Click the Next button to open the Show menu Images dialog box, select the Yes radio button, and use a small icon when you use the menu item.
(3) Click on the Next button to open the Your IP Address dialog box and enter the IP addresses of the servers in the IP addressing text box, such as 192.168.0.1.
(4) Click the Next button, open the Domain Name dialog box, and enter the domain name in the Domain Name text box, such as server.kangbo.com.
(5) Click the Next button to open the Anonymous Account dialog box and select the Yes radio button to allow the user anonymous access to the directory.
(6) Click the Next button to open the Home Directory dialog box, and in which you enter the primary directory of the anonymous user login, such as C:\MyFTP, in the Anonymous a text box.
(7) Click the Next button to open the lock in Home Directory dialog box and select the Yes radio button to lock the anonymous access directory. In this way, users who log on anonymously will only have access to files and folders in the home directory, and other files and folders outside this directory will not be accessible.
(8) Click the Next button, open the Named Account dialog box, select the Yes radio button, create the named accounts, so that users can access FTP with a specific account.
(9) Click the Next button, open the Account Name dialog box, and enter the name, such as Wang, in the accounts Login name text box to be created.
(10) Click the Next button to open the Account Password dialog box and enter a password in the password text box, such as Wang.
(11) Click the Next button, open the Home Directory dialog box, and enter the name of the login directory in the home directory text box, as entered in step (6), such as C:\MyFTP.
(12) Click the Next button, open the Lock in Home Directory dialog box, select the No radio button, do not lock the home directory.
(13) Click the Next button to open the Admin Privilege dialog box and select Administrator rights in the Account Admin privilege drop-down list box. Here we select System administrator privileges, that is, the sysadmin.
(14) Click the Next button to open the Done dialog box. If you need to modify the previous settings, click the Previous button, and to keep the settings, click the Finish button, which is shown in Figure 10-14 of the Serv-u Administrator window.

Figure 10-14 Admin window after the site is configured

10.3.2 Create a group
In the Serv-u Administrator window, expand the Created FTP server node, right-click the Groups node, and select the new Group command from the pop-up shortcut menu to create a group. The Add New Group dialog box opens, the Group Name text box is entered, and the group names, such as WD, and then click the Finish button, the groups that are created appear in the Administrator window.
Select the Dir Access tab and click the Add button to open the Add File/path to access Rules dialog box. Set the file path, such as C:\MyFTP, and the permissions that this group has on the folder, as shown in Figure 10-15.

Figure 10-15 Creating a group and setting the file path

10.3.3 Create a virtual directory
For an anonymous user (Anonymous), his home directory is C:\MyFTP, and if you want to access the content in C:\Wang through ftp://192.168.0.1/temp format, you need to add a virtual directory to it.
The steps to establish a virtual directory are as follows:
(1) In the Serv-u Administrator window, click the Settings node under the server node and select the General tab.
(2) Click the Add button to open the virtual Path Mappings-step 1 dialog box and enter the physical path, such as C:\MyFTP, in the Physical Path text box.
(3) Click the Next button to open the virtual Path Mappings-step 2 dialog box and enter the directory name, such as C:\Wang, that the path is mapped to in the map physical path to text box.
(4) Click the Next button to open the virtual Path Mappings-step 3 dialog box, and in the Map path name text box, enter the name of the dummy directory, such as temp.
(5) Click the Finish button to complete the virtual directory creation, and the results are shown in Figure 10-16.

Figure 10-16 Creating a virtual directory
(6) Select the anonymous user in the left pane of the organizer, and then switch to the Dir Access tab in the right pane, and then click the Add button to add the C:\Wang directory to the list.
10.3.4 Manage FTP users
When using the Serv-u administrator to create a server site, we have created a anonymous user and a Wang user. Administrators can also add, delete, copy, or disable users as needed.
To add a new user, including adding anonymous users, you can right-click the users node in the left pane of the Administrator window. Pop-up shortcut menu, select New User command, open the Add New User dialog box. Follow the prompts and enter the username (user name), password (Password), and home directory in turn.
To remove a user, right-click the selected user and select the Delete User command from the pop-up shortcut menu.
To copy a user, you can right-click the selected user and select the Copy User command from the pop-up shortcut menu, and a new user is generated (whose name is add copy of before the original user name). In addition to the user name and the original user, the other items (including passwords, home directories, directory permissions, etc.) are exactly the same.
To temporarily disable a user's logon rights, select the user, and then switch to the Account tab and enable the Disable Account check box. 10.3.5 Manage Directory Permissions
Select the user name in the left pane of the Serv-u Administrator window, and then switch the right pane to the Dir Access tab. Once you have selected the table of contents in the list, you can change the access rights of the current user on the right side of the window, as shown in Figure 10-17.

Figure 10-17 Setting access permissions

Access rights are divided into 3 categories, namely file, directory, and subdirectory permissions. Where file permissions include Read,write,append,delete and execute; directory permissions include list,create and remove; subdirectory permissions are only inherit. When the corresponding check box is enabled, the permissions that are set will work on the current directory and the entire tree under it.
10.3.6 Client Connections
On the client side, users can connect to the configured FTP server in a variety of ways, such as DOS, IE, or dedicated FTP client applications.
In a DOS (or command prompt) state, the client's access format is ftp-a 192.168.0.1, logged on anonymously, without entering a username and password.
In IE browser, the client's access format is ftp://192.168.0.1, and no user name or password is required.
In the dedicated FTP client application settings, such as CuteFTP version 4.2, in Chinese, as shown in Figure 10-18, enter the site label name (arbitrary) in the Site label text box, and in the host address Enter the FTP server site address 192.168.0.1 in the text box, and enter the user name and password, respectively, in the user ID and Password text boxes. Then click the OK button.
Comments:
In the client connection, the IP address 192.168.0.1 can also be replaced with the computer name server.kangbo.com. In DOS, other characters are case-insensitive except for a in Ftp-a 192.168.0.1, which must be capitalized. If you are logged in using the FTP 192.168.0.1 format in DOS mode, you will need to enter the username and password for the login.

Figure 10-18 using the FTP client software to log on to the server

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.