Detailed configuration parameters of vsftpd # accepting anonymous users anonymous_enable = YES # password no_anon_password = YES # anon_root = (none) # accept local user local_enable = YES # local user home directory local_root = (none) # If anonymous users require a password, therefore, the user using the email address in banned_email_file cannot log on to deny_email_enable = YES # It is only useful when no pam verification version is available, check whether the user has a valid shell to log on to check_shell = YES # If this option is enabled, the userlist_deny option will be enabled before userlist_enable = YES # If YES, the user in userlist_file will not be able to log on, if NO, only the user of userlist_file can log on to userlist_deny = NO # If _ Local_user is enabled together, so the user-locked directory comes from the directory specified by/etc/passwd for each user (this is not very clear, which one is familiar with it) passwd_chroot_enable = NO # defines the name of the anonymous login user. The default value is ftp. Ftp_username = FTP ################# user permission control ############### Yes upload (global control ). write_enable = YES # umasklocal_umask = 022 www.2cto.com for local users to upload files # file_open_mode = 0666 # anonymous users can upload anon_upload_enable = NO # directories created by anonymous users = NO other write permissions of anonymous users (Change permissions ?) Anon_other_write_enable = NO if set to YES, anonymous logon users are allowed to download readable files. The default value is YES. Anon_world_readable_only = YES # If YES, then, all non-Anonymous login usernames will be switched to the user name specified by guest_username # guest_enable = NO. The user of all anonymous uploaded files will be changed to chown_usernamechown_uploads = YES. chown_username = lightwiter # If this function is enabled, users of all columns in chroot_list_file cannot change the root directory chroot_list_enable = YES # allow the use of the "async ABOR" command. Generally, this is not necessary. async_abor_enable = YES is prone to problems. The default value is NO. Ascii_upload_enable = YES # control whether ASCII mode download is available. The default value is NO. Ascii_download_enable = YES # this option must specify an empty folder and no logon user can write data. When vsftpd does not require file system permission, the user is restricted to this data folder. The default value is/usr/share/emptysecure_chroot_dir =/usr/share/empty ################## timeout setting #### ############# idle connection timeout www.2cto.com idle_session_timeout = 600 # data transmission timeout data_connection_timeout = 120 # PAVS request timeout ACCEPT_TIMEOUT = 60 # PROT mode connection timeout connect_timeout = 60 ################ server function options ############### enable log feature xferlog_enable = YES # use the standard format xferlog_std_format = YES # When xferlog_std_format is disabled and this option is enabled, record all ftp requests and replies, which are useful for debugging. # log_ftp_protocol = NO # pa is allowed Sv mode pasv_enable = YES # disable security check. Be careful. # pasv_promiscuous + NO # port mode # port_enable = YES # disable security check # prot_promiscuous # enable tcp_wrappers to support tcp_wrappers = YES # define the name used by PAM. The default value is vsftpd. Pam_service_name = vsftpd # username nopriv_user = nobody when the server runs at the bottom layer # redirect vsftpd to the specified IP address when the pasv command is replied. (server connection jump ?) Pasv_address = (none) www.2cto.com ################# server performance options ############### whether ls can be used -R command to avoid wasting a lot of server resources # ls_recurse_enable = YES # whether to use single-process mode # one_process_model # bind to the port specified by listen_port, since it is bound, that is, it is always on, which is the standalone mode listen = YES # When the user logs in and uses commands such as ls-al to query the management right of the file, by default, the owner's UID is displayed instead of the owner's name. If you want the owner name to appear, enable this function. Text_userdb_names = NO # whether the local time or GMT time is used to display the directory list, you can use the mdtm command to achieve the same effect. use_localtime = NO # Test Platform optimization # use_sendfile = YES ############### Information Class setting ## ############## welcome information displayed during login. if banner_file is set, this setting is invalid. ftpd_banner = welcome to the hunan sanchen Fake-Ta FTP website. # display information for directory configuration. The message_file content in each directory is dirmessage_enable = YES # display session status information, off! # Setproctitle_enable = YES www.2cto.com ############### file definition ################### define the file chroot_list_file =/etc/vsftpd. chroot_list # define the limit/file that allows users to log on to userlist_file =/etc/vsftpd. user_list # define the location of the logon information file banner_file =/etc/vsftpd/banner # the email address banned_email_file =/etc/vsftpd used as the password when an unauthenticated user logs on. banned_emails # log File Location xferlog_file =/var/log/vsftpd. log # directory information file message_file =. message ############# directory definition ######### ######### Define the user configuration file directory user_config_dir =/etc/vsftpd/userconf # define the local user login root directory, note that the root directory can be relative or absolute. the relative path is for the user's home directory. local_root = webdisk # the root directory of each user after login is/home/username/webdisk # anon_root =/var/ftp ###### ####### user connection options ################# maximum number of accepted clients max_clients = 100 # Each ip Address max_per_ip = 5 # Use Standard Port 20 to connect to ftpconnect_from_port_20 = YES # bind to an IP address, other IP addresses cannot access listen_address = 192.168.0.2 # bind to a port www.2cto.com # li Sten_port = 2121 # data transmission port # ftp_data_port = 2020 # the upper bound of the port range can be used in pasv connection mode. 0 indicates any port. The default value is 0. Pasv_max_port = 0 # the lower bound of the port range can be used in pasv connection mode. 0 indicates any value. The default value is 0. Pasv_min_port = 0 ############## data transmission options ################# Anonymous Users transmission ratio of (B/s) anon_max_rate = 51200 # local user transmission rate (B/s) local_max_rate = 5120000 from the Linux Alliance