

#Specifies the minimum port number of the port range that can be used to transmit data in passive mode. The public IP address of the Linux server is used in this example. #Specifies the public IP address of the FTP server. #Specifies a file to contain the list of exceptional users. Exceptional users are users who are not limited to the home directory after they log on. #Uses a list to specify exceptional users. #Limits all users to the home directory after they log on. #Specifies the directory to which to direct local users when they log on. #Add the following parameters to the end of the configuration file: #Add a number sign (#) to the beginning of the line to comment out the following parameter: #Allows local users to log on to the FTP server. #Prohibits anonymous users from logging on to the FTP server. #Modify the values of the following parameters: #Use the default values for all parameters except the following parameters: For example, an extra space may cause the service to fail to restart. Make sure that the parameters are specified in valid formats. Make sure that the parameters are not commented out with the number sign ( #). Important Copy the following parameters and paste them to the configuration file of the Linux server. Run the following command to change the permissions of the /var/ftp/pub directory and grant write permissions to FTP users:.Enter :wq and press the Enter key to save and close the file.

Press the Esc key to exit the edit mode.#The public IP address that is assigned to the FTP server. #Specify the maximum port number of the port range that is sent to the FTP clients for passive mode connections. These ports provide more secure access to the FTP server. We recommend that you use ports in a high number range, such as 50000 to 50010. #Specify the minimum port number of the port range that is sent to the FTP clients for passive mode connections.

This topic focuses on the easy-to-configure anonymous user mode and the more secure local user mode. If you have high security requirements on server data, we recommend that you configure virtual user mode under the guidance of professionals. Virtual user mode is more secure than anonymous and local user modes. Virtual users have access only to the FTP service that the Linux system provides them, and do not have access to other resources of the system.

This is the least secure authentication mode. Anonymous user mode: Users can log on to the FTP server without a username or password.FTP supports the following authentication modes:
