Serv-u's management is much more powerful than IIS, and it's easy to set up. The special note is that every time you make any settings or changes, you have to click on the upper left corner of the toolbar "save" button to be effective.
1. Account Management
Serv-u account management is very convenient, not only can the single account management, but also have the same permissions of multiple accounts set up into a group, unified management.
1 Add/Remove individual accounts
In the left window, locate the user, right-click, select New user, set the user name, password, home directory (the directory location after which the account is logged in), and "Lock the user to the home directory" to complete the creation of a new account. Sometimes we want to build a group of accounts with the same home directory, such as A1, A2, A3 ... If you go to create a new, it is more trouble, at this time you can use the "Copy user" function. First create A1 user, then right click on the account "A1", select "Copy User", according to this, and then the copy of the account name changed to A2, A3, etc. The account created in this way is the same as the other settings, including passwords, except for different names.
2) Add/Remove Group
If there are a group of accounts, such as A1, A2, A3, with the same access to the home directory and IP access rules, you can set these accounts into a single, unified management, any of the settings for the group will also be in force for all account members of the group. Right-click Groups, select New Group, and enter the name of the group to create a new group. The new group does not own any account members, and you need to add these member account one by one to the group. Select the account you want to add and select the group you want to join in the group in the right window, except for the anonymous account, where you can join one or more groups at the same time. To remove this account from this group, leave it blank. To delete a group, right-click on the group name, and then click Delete Group. Similarly, a group can be copied as a single account by selecting the right key after a group and then clicking Copy Group.
3 Set the validity of the account
If some accounts violate your rules, you can prohibit the account for a period of time, during which any user will be denied access to the server with this account. You just select the account, on the right "account" tab will be "Disabled account" selected, to lift the ban, will be "√" removed. For some temporary accounts, if you wait until the expiration of one after another to delete, your memory is obviously a big test. Serv-u provides a solution that can automatically delete the account at expiration. Select "Automatically delete account on date" and set the expiration date in the Drop-down box below, and the system will automatically delete the account on the specified day.
2. Setting up a virtual directory
Like IIS, Serv-u also provides the virtual directory Settings feature. Suppose we want to map the "g\ movie \dvd Movie" Directory to the "DVD" directory under the FTP home directory. Click "Settings", under the General tab, there is a "virtual path mapping", click "Add", enter "g\ movie \dvd movie" in "Physical Path", "enter" in "Map Physical path". %home% "or the absolute path of the FTP home directory," the mapped path name "is filled in" DVD "and is completed as shown in Figure 4. Finally, go to the user's Directory Access tab and add the g\ movie \dvd movie catalog. Log on to the FTP account and you can see a DVD directory.
3. Set directory Permissions
Unlike IIS, Serv-u sets different access directories based on accounts. Each account at the time of creation to choose the location of the directory after the login, different accounts can be different. Each directory has the following permissions to set:
1) file operation
READ: Allows users to download files from the server;
Write: Allows the user to upload files to the server, but does not allow modification, deletion and renaming;
Append: Allows to append content to existing files or to be resumed, only if this is selected, the directory is allowed to continue;
Delete: Allows users to modify files, rename and delete;
Execute: Execute commands through FTP, this permission should be used carefully, otherwise it may cause security problems.
2) directory operation
List: Allows the user to obtain a list of files in the directory, the user does not see anything;
Create: Allow users to create a new subdirectory in the directory, many upload users upload files are often the entire directory upload, if this item is not selected, users can upload files, but not by directory to upload;
Delete: Allows users to delete directories.
3) Child directory operation
Inheritance: The access rules for parent directories are automatically applied to subdirectories.
As a webmaster, not only to understand these permissions, but also to learn to rationally set the permissions of different users of each directory. Generally speaking, for ordinary or anonymous users, it is best to give read and directory list permissions only to facilitate the administration and improve the security of the FTP server. For uploading users, you should open a special account and give read, write, append, directory list and create permissions, for special users, as little as possible to give more permissions, especially the "execute" permission. To set permissions, go to the Directory Access tab for each user or group, and set it yourself according to your needs.
4. Message settings
When you log in to an FTP using Cuteftppro, you sometimes see information such as "Welcome to this site" in the status window, which is the message. Many FTP webmaster do not pay attention to login/exit/change Directory message settings, in fact, if set properly, not only to facilitate users, especially the upload user access, but also to make your FTP look more personalized and professional.
Select settings and locate the Messages tab in the right window. "Server response information" is default by the system and is generally not subject to modification. Notice that the four options below are what we need to set:
Start tag information: Specifies the file location that contains the welcome information that appears when a user logs on successfully;
Turn off tag information: Specifies the location of the file that contains the information to display when the user disconnects;
"Change the home directory of a message file": Specifies the location of the file where the information is displayed when the user changes the directory;
"Change the secondary directory of message files": Specifies the location of the file where the user displays information when they change the directory and the file does not find the primary file.
Take an example of the welcome information that is displayed when you make a successful login. First build a text file called logon, open, and enter the following information:
Welcome to XXX's personal FTP server
Your IP address is:%IP
The time the server is currently located is%time
There have been%u24h users who have accessed this ftp in the last 24 hours
This FTP server has been running for%serverdays days%serverhours hours.
Server operation:
Total number of logged-in users:%loggedinall Total
Number of users currently logged in:%unow
User already used space quota:%quotaused kb
Remaining free space quota:%quotaleft kb
User's current remaining space:%dfree kb
Maximum free disk space:%quotamax kb
Among them, the beginning of the% are some variables (more variables please query serv-u help file), XXX can be changed to your name, you can add some of your favorite text, but each line with no more than 70 English characters is advisable. In the start tag information, enter logon. TXT file address, after saving with CuteFTP login, you will see the message of the hint. In this way, for the users to upload files, the server also left how much space to upload on the clear at a glance.
Tip: For each account you can also set the message that appears when the user logs on with this account. Locate the login message file in the General tab of this account, and select the good message file directory. The advantage of this is that we can set up a dedicated account to upload, and then only the relevant details of the upload to set up a message file for the user to upload account reference.
5. Settings for upload/download rate
There is a "upload/download rate" tab in each user's setup options. The so-called "upload/download rate" is actually a credit mechanism for uploading and downloading files to users. As a webmaster, all hope that users can upload some valuable things for everyone to share, and not just use the resources provided by FTP. By setting the "Upload and download ratio", the webmaster can limit the number of files that users can download after each upload of a file using FTP. With the upload/download ratio enabled, Serv-u provides four counts:
"Count each task file": Calculates the uploaded/downloaded file for each individual FTP task under this ratio;
"Count bytes per task": Calculates the byte of the upload/download file for each individual FTP task under this ratio;
Count all Task files: calculates uploaded/downloaded files for all FTP tasks under this ratio;
Count bytes for All tasks: Calculates the bytes of uploaded/downloaded files for all FTP tasks under this ratio.
Take "Count each task file" as an example, if in the "ratio" option, "upload" set to 1, "download" set to 4, then the account each upload 1 files, you can download 4 files from FTP.
But "upload/download Rate" There is a problem: if there is a directory or file in FTP does not need to be included in the upload/download rate, how to do? We can set it in the upload/download rate tab in Settings. Click "Add" to enter a directory or file that does not need to be counted, OK. If you have more than one directory or file, repeat this action.
6. User Quota management
The use of "upload/download rate" can effectively motivate users to obtain download rights and actively upload, but the new problem follows: As users upload more files, the hard disk space will soon be occupied by these files, if a user uploads a lot of files, in the same hard disk space, It will also affect other users of the size of the upload space to dominate. At this point, you need to manage the user quota.
As with the upload/download rate, Serv-u can assign a disk quota to each user. Select the user you want to set up, and select Enable disk quotas in quota. Click the "Calculate Current" button below, "current" will show the user account currently available hard disk space, in the "maximum" to fill in the user account can be allocated to the maximum size of the hard disk space. Note that the units here are KB.
7. Manage Active Users
The forest is big, and any bird has it. Not every user who logs on to the FTP server is in line with the rules, which requires the webmaster to manage the online users connected to the server. Click Activities under fields on the left side of the main interface and manage them in the Users tab on the right window. Select one of the users, the right button, will be in the pop-up menu to show the action can be done.
Overload information: Used to reload the user information, equivalent to refreshing.
Send message: Sends a text message to the currently selected user, and the message appears in the status window in the user's FTP client software.
Broadcast: Sends a text message to all currently active users.
Stop routing: If a user is currently uploading or downloading a file, you can abort the upload or download operation without kicking the user out of the server.
"Kick the user": Kick the user out of the server, regardless of whether the user is uploading or downloading the file.
"Monitor user": monitor all operations of the user in real time, but do not perform any other administrative commands on that user. When selected, an extra tab, named after the Domain Log tab, is displayed, displaying all of the user's operational information in real time. To turn off monitoring, right-click the tab and select Close watch.
The Domain Log tab is used to record the account name, logon time, IP address, and exit time of each user who logs on to the server in real time, making it easy for the webmaster to understand the basic situation of the user who is logged on to the server. By default, the log is updated in real time, but if the next freeze is selected, it stops the update.
Tip: Monitoring a user will occupy the larger server resources, if the number of active users is more, please use this feature carefully.
8. Edit IP access rules
For some users who disturb the order of the server but do not easily delete their accounts, you can use edit IP access rules to allow or block specific IP access. Serv-u the User IP access rules are very flexible settings, not only can be set to allow access to the server's user IP, you can also set the user IP denied access, not only for each account can be individually edited, but also for the entire server all accounts for unified editing, but also support "and"? "Wildcard character.
1) Access Denied
For rogue users, if it is not convenient to delete their accounts, you can find the IP from the domain log that the user is connected to. In the Rules text box, click Add, and serv-u will add this rule to the IP Access rules list box below. This is quite effective for users who have fixed IP. However, if the user is a dial-up Internet user and dials after the disconnection, a new IP will be obtained, and obviously this IP access rule is invalid for the user. To work around this problem, you'll need to use wildcards and the "-" symbol. Let's say the user IP we want to block is 192. 168. X X, you can enter 192 in the rule. 168.. , or you can enter 192. 168. ﹖. ?-192. 168. ﹖﹖﹖. ??? or 192. 168. 0. 0-192. 168. 255. 255, the effect is the same. Reasonable use of these symbols can also effectively prevent hacker attacks.
2) Allow access
If you want to use your FTP site for only a few specific users, you can select Allow access, enter a specific user's IP in rules, and then click Add. Similarly, if the IP of a particular user is a dynamic IP, you can set it by using the wildcard character and the "-" symbol.
In fact, as a webmaster, more times need to mix the two rules flexibly, such as from the access denied IP to set an IP to allow access, or vice versa. Need to be reminded: For some LAN users, such as Internet cafes, if their IP set to deny access, the entire LAN will be blocked by the server.
9. Resource management such as server bandwidth
For the server, the most important thing is how to ensure that the server bandwidth and other system resources and performance is not wasted. To do this, you also need to make some settings to go to the local server → settings → general tab.
Maximum speed: the maximum bandwidth that can be used (kb/seconds), and fill in the appropriate values based on the server's total bandwidth resources. If you do not fill in the value, Serv-u will use all available bandwidth, which can cause other network applications on the server to be unavailable when the number of connected users reaches a certain amount. For example, 512Kbps ADSL is best set to 50kb/seconds or below.
Maximum users: Sets the maximum number of users allowed to connect to this server at the same time. Because each user connected to the server consumes a certain amount of bandwidth even if they do not upload or download any files, the system will not control the number of logged-in users until all resources are exhausted.
"Delete partially uploaded files": Delete incomplete upload files. If you select this option, files that are not fully uploaded are automatically deleted to save the server hard disk space to the maximum possible. Whether or not to choose, depending on the server user normally uploaded file size decision.
"Disable the go-ahead when scheduling": Many FTP servers to prevent users for a long time does not operate but occupy bandwidth and the number of connections to do a time-out setting, when the user connected more than a certain time but did not do any action, will be automatically kicked out of the server. For this, some FTP client programs automatically send some commands to the server to ensure that they are not kicked out. If this option is selected, the server will use a unique timing method to prevent the FTP client program from being set up when these are surpassed. Recommended selection.
"Intercept connection more than x seconds x minutes": Used to set if a user in X seconds to continue to connect x times, then shielding his IP address x minutes, can effectively prevent users to use such as network ants, such as high-speed multi-threaded download software to connect to the server.
The above settings are valid for all servers under domain. However, these settings for a specific FTP server or an account is too superficial, not conducive to meticulous management. But it doesn't matter, serv-u for each account under each server provides a detailed set of features. General tab to enter this account:
"Allow only x from the same IP login": Many users download two or more than two files, in order to save download wait time, often open more than two FTP client software login. For a server, each logon process is actually a user, which takes up not only the system bandwidth but also the other user's logon rights. This requires that you select this option to prevent this. When selected, the server allows only one IP at a time with up to X connections.
"Maximum upload speed and maximum download speed (kb/seconds)": Used to set the maximum upload/download speed of the account user. For a particular account, it can be set higher than the general account to reflect the privileges.
Idle timeout and Task timeout (sec): Idle timeout is used to set the server to automatically kick out of resources when the user is idle for more than a certain amount of time, and the task timeout setting is automatically kicked out by the system when the user and server perform each task.
Maximum users: Sets the maximum number of users to log on to the server with this account at the same time.
After you have completed these settings, you already have a quasi professional FTP server in a quasi professional management level. The reason is only the level of professional management, because you have not yet achieved the most fashionable and the most dazzling remote management functions.
10. Implementing Remote FTP Server Management
Have you ever thought about setting up an FTP server in your home and doing all kinds of setup and management of the server in your office like sitting at home? SERV-U provides this remote management capability. For the convenience of illustration, let us assume that we set up a FTP server named "Myftp" with Serv-u at home, the address is ftp//218. 1. 1. 1, the port is 21, now to the office with user name and password for DYS account for remote management.
1 first create an account with remote admin privileges
Create a new user with username and password set to Dys. Once created, enter the Account tab of the Dys account and locate the Permissions Drop-down list box. Here, in addition to the normal user's "No permissions", there are four remote permissions to choose from:
Group administrator: can be managed remotely, but only for this group of users and not for the server.
Domain Admins: You can administer remotely, but you can only manage this domain and you cannot add new domains.
System administrator: can be managed remotely and has full permissions.
Read-only administrator: primarily for remote diagnostics, you can see all the server settings but not be able to modify them.
Here, we select "System Administrator" and then save.
2 Install and set up serv-u on the office machine.
Once installed, the Set Up Server Wizard can fill in. Select the Serv-u server in the left window, right-click, and select New server. In the wizard window that pops up, "IP address" fills in the server IP to be managed, where 218 is filled in. 1. 1. 1, "Port number" to fill in the management of the server's ports, here fill 21. "FTP server name" is free, enter "remote Administration myftp", "User name" and "password" Enter the account name and password that has been set up on the managed server with remote administrative privileges.
3 Connection and management with the remote FTP server
Double-click Remote Administration MYFTP to establish a connection with the server in your home. After the connection, at this time you can like at home to the server for a variety of settings and management, is not very convenient.
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.