![]() Create the chroot_list file in /etc/vsftpd/.Then, enter :wq to save the settings and exit. Pasv_max_port= 3100 #Maximum port number in passive FTP mode Pasv_min_port= 3000 #Minimum port number in passive FTP mode Pasv_address= xx.xx.xx.xx #Public IP address of the FTP server Apart from the parameters configured in active FTP mode, the following parameters are also required for passive FTP mode: #The public IP address of the FTP server and the range of accessible ports must also be configured.#The following parameter allows login users to visit their own home directories:Ĭhroot_local_user=YES #The directory access rule applies to all users.Ĭhroot_list_enable=YES #The directory access rule does not apply to exclusive users.Ĭhroot_list_file=/etc/vsftpd/chroot_list #Specifies exclusive users. Local_root= /var/ftp/work01 #Specifies the file directory used by a local FTP user. Local_enable=YES #Local users are allowed to log in to the FTP server. Local users are allowed to log in to the FTP server with their local file directories specified.Īnonymous_enable=NO #No anonymous login to the FTP server is allowed. Parameters to be configured for the active FTP mode: #No anonymous login to the FTP server is allowed.If other HUAWEI CLOUD ECSs are required to use public IP addresses to access the FTP site that is set up on a HUAWEI CLOUD ECS, set FTP to passive mode. Set FTP to active or passive mode based on site requirements. Run the following command to open the file:.Run the following command to change the owner of the created file directory to the local user for logging in to the FTP server:Ĭhown -R ftpadmin:ftpadmin /var/ftp/work01.Run the following command to create a file directory for the FTP server, /var/ftp/work01 is used as an example:.Run the following command to configure the password of user ftpadmin:.To do so, perform the following operations:įor example, to create user ftpadmin, run the following command: If you attempt to log in to the FTP server using the Linux OS account, your request will be rejected by vsftpd, but you are allowed to configure the username and password in vsftpd for logging in to the FTP server. However, you are not allowed to modify or upload files. Information similar to the following is displayed.Īfter vsftpd is installed, anonymous FTP is enabled by default, allowing you to log in to the FTP server without requiring the login username and password. Run the following command to obtain the port running FTP:.Run the following command to start FTP:.Run the following command to configure automatic FTP enabling upon ECS startup:.If information similar to the following is displayed, vsftpd has been installed. Run the following command to install vsftpd:.For details, see How Can I Use an Automated Tool to Configure a HUAWEI CLOUD Image Source (x86_64 and Arm)? To obtain and update the system and software, update the image source to a HUAWEI CLOUD image source.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |