Article Title: describes how to configure Parameter options in vsftpd. conf. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Common Parameters in the vsftp. conf configuration file
Listen_address = ip address
Listener IP
Listen_port = port_value
Specifies the listening port. The default value is 21.
Anonymous_enable = YES
Allow anonymous account?
Local_enable = YES
Allow local user login?
Nopriv_user = ftp
Specifies the Running Account of the vsftpd service. If this parameter is not specified, ftp is used.
Write_enable = YES
Allow write?
Anon_upload_enable = YES
Whether anonymous users can upload files
Anon_mkdir_write_enable = YES
Whether an anonymous user creates a directory
Dirmessage_enable = YES
The welcome information is displayed in each directory, and The. message file is created in each directory to write the welcome information.
Xferlog_enable = YES
Logs recorded during file upload/download
Connect_from_port_20 = YES
Whether to use port 20 for data transmission (whether to use active mode)
Chown_uploads = YES, chown_username = whoever
Modify the owner of an uploaded file by an anonymous user
Xferlog_file =/var/log/vsftpd. log
Log Files
Xferlog_std_format = YES
Use standard file logs
Idle_session_timeout = 600
The session times out. The client connects to ftp but has not performed any operations.
Data _ connection_timeout = 120
Data transmission timeout
Async_abor_enable = YES
Whether to allow the client to use commands such as sync
Ascii_upload_enable = YES
Ascii_download_enable = YES
Whether to allow upload/download of binary files
Chroot_local_user = YES
Restrict all local users to their own directories
Chroot_list_enable = YES
Chroot_list_file =/etc/vsftpd/chroot_list
Users who cannot leave the home directory should write a line of user names in the/etc/vsftpd/chroot_list file. When using this method, must be chroot_local_user = NO
Ls_recurse_enable = YES
Whether to use commands such as ls-R
Listen = YES
Enable ipv4 listening
Listen_ipv6 = YES
Enable ipv6 listening
Pam_service_name = vsftpd
Use the pam module. The vsftpd file is under the/etc/pam. d directory.
Userlist_enable = YES
After this option is activated, vsftpd reads the user list in the file specified by the userlist_file parameter. When a user in the list logs on to the FTP server, the user is denied before prompted to enter the password. That is, after the user name is entered, vsftpd finds that the user name is in the list, vsftpd directly disallows the user and does not perform subsequent steps such as asking for the password.
Userlist_deny = YES
Decide whether to prohibit or only allow users in the file specified by userlist_file to log on to the FTP server. This option takes effect only after the userlist_enable option is enabled. YES, the default value is to prohibit users in the file from logging on, and do not prompt these users to enter their passwords. NO. Only users in the file can log on to the FTP server.
Tcp_wrappers = YES
Whether tcp_wrappers management is allowed
Local_root =/home/ftp
Root directory of all users, which is invalid for anonymous users
Anon_max_rate
The maximum transmission speed of anonymous users, measured in Byts/s.
Local_max_rate
Maximum transmission speed of local users, measured in Byts/s
Download_enable = YES
Allow download?