Take a personal FTP site with VSFTP under Linux (1)

xiaoxiao2021-03-06  41

The first is the most basic configuration, please see my /etc/vsftpd/vsftpd.conf########################################################################################################################################################################################################################### #################################################accept Anonymous user anonymous_enable = yes # No in anonymous user login does not ask the password no_on_password = yes # Accept local user local_enable = yes # can be uploaded (global control). If you want an anonymous user, you can upload a No Anon_upload_enable = YES, if you want to be anonymous Users can set an anonymous user from being uploaded here, so it does not set these two items. Write_enable = YES # local user UMASKLOCAL_UMASK = 022 # Use upload / download log, log file defaults to / var / when the log / vsftpd.log, you can modify xferlog_enable = YES # logs by using a standard format xferlog_std_format = xferlog_file option xferlog welcome message ftpd_banner = Welcome when YES #login to helloworld's FTP service. #, then set the cover above ftpd_banner settings, user login Display / etc / vsftpd / banner banner_file = / etc / vsftpd / banner # When you enter the directory, display the text file (, default to .Message) specified by the message_file option when entering the directory DirMessage_Nable = YES # The local user login is located after the directory, if this item is not set, the local user login will be in his Home directory (/ 85 fields of / etc / passwd). The corresponding option for anonymous users is anon_rootlocal_root = / var / ftp # Set to YES, the following control valid chroot_list_enable = yes # If NO, record the file specified in the chroot_list_file option (default is /etc/vsftpd.chroot_list) will be written by Chroot after logging in, you cannot leave If you are YES, the recorded user will not be chroot. Here, you can choose Yes.chroot_local_user = YES # If you are set to yes, the user will not be login in the userlist_file option specifying the file (default /etc/vsftpd.user_list) will not be login, and the following UserList_deny option userList_enable = yes # is only recorded in UserList_File Option Specifies the login request of the user in the file (default is /etc/vsftpd.user_list). If YES does not accept the request for these users. ISERLIST_DENY = no # Note !!! VSFTPD also to check the /etc/vsftpd.ftpusers file The user recorded in this file will not be able to run in the Standalong mode, which can perform the following control listen = yes # anonymous transmission ratio (b / s) anon_max_rate = 51200 # Local user's transmission ratio ( b / s) local_max_rate = 512000 # maximum acceptable number of each client max_clients = 100 # ip maximum number of client max_per_ip = 5 connect_from_port_20 = YEStcp_wrappers = YESpam_service_name = vsftpd ############### ######################################################################################################################################################################################################################################################################################################## #############

转载请注明原文地址:https://www.9cbs.com/read-69079.html

New Post(0)