Vsftp means very security FTP, which is actually an FTP software. Each person has their own different methods when installing software, but most of them are similar. The following is my own method for installing vsftpd:
1. Download:
Download the software from the network. The software name is vsftpd-2.0.5.tar.gz.
2. Compile the source code:
Tar xvzf vsftpd-2.0.5.tar.gz (unzipping and go to the unzipping directory vsftpd-2.0.5)
Make
Make install
3. installation and configuration:
CP vsftpd. CONF/etc
CP RedHat/vsftpd. PAM/etc/PAM. d/FTP (user identification)
4. Edit the Configuration:
Use VI to open vsftpd. conf. You do not need to worry about it by default.
Add Listen = yes Directly to the last line (independent vsftpd server)
5. Start the service:
/Usr/local/bin/vsftpd &
Use netstat-tnl to check whether port 21 has been installed successfully.
At this time, FTP is used, but anonymous access is not allowed.
6. Anonymous Access:
Mkdir/var/ftp
Chown root. Root/var/ftp
Chmod og-W/var/ftp
This allows anonymous access. If you are not clear, refer to the installation help more install
7. Automatic Start
Open it with VI and add/usr/local/bin/vsftpd & to etc/rc. Local.
The following is the parameter program code of vsftpd. conf:
Anonymous_enable = Yes allow anonymous login
When dirmessage_enable = yes is used to switch the directory, the contents of. Message under the directory are displayed.
Local_umask = 022 local file permission on FTP. The default value is 077.
Connect_form_port_20 = Yes enable data connection on the FTP data port
Xferlog_enable = yes. Activate the uploaded and downloaded logs.
Xferlog_std_format = yes use the standard log format
Ftpd_banner = XXXXX show welcome information
Pam_service_name = vsftpd Verification Method
Listen = Yes independent vsftpd Server
Anon_upload_enable = Yes anonymous user upload permission
Anon_mkdir_write_enable = yes. When creating a directory, you can upload files to the directory.
Write_enable = Yes permission written by the local user
Anon_other_write_enable = Yes anonymous account can be deleted
Anon_world_readable_only = no anonymous user browsing permission
Ascii_upload_enable = Yes enables the upload ASCII Transmission Mode
Ascii_download_enable = Yes enable the ASCII transmission mode for download
Banner_file =/var/vsftpd_banner_file after the user connects, welcome information in this file
Idle_session_timeout = 600 (seconds) 10 minutes after the user's session is idle
Data_connection_timeout = 120 (seconds) disconnect the data connection for 2 minutes
Accept_timeout = 60 (seconds) disconnect the client after being idle for 1 minute
Connect_timeout = 60 (seconds) interrupted for 1 minute and then reconnected
Local_max_rate = 50000 (BITE) Local User transfer rate 50 K
Anon_max_rate = 30000 (BITE) Anonymous user transfer rate 30 K
Pasv_min_port = 5000 change the client's data connection port
Pasv_max_port = 6000 between and
Max_clients = 200 maximum number of FTP connections
Max_per_ip = 4 maximum number of connections per IP
Listen_port = 5555 data connection from port 5555
Local_enble = Yes local account can log on
Write_enable = No. You are not authorized to delete or modify files after logging on to the local account.
Chroot_local_user = yes all local accounts can only be in their own directories
The list in the chroot_list_enable = yes file can be called.
Chroot_list_file =/etc/vsftpd. chroot_list prerequisite: chroot_local_user = No
Userlist_enable = yes is not accessible to users in the specified file
Userlist_deny = Yes
Userlist_file =/etc/vsftpd. user_list
Banner_fail =/path/file name display the file content when connection fails
Ls_recurse_enable = No
Async_abor_enable = Yes
One_process_model = Yes
Listen_address = 10.2.2.2 bind the virtual service to a port
Guest_enable = Yes virtual user can log on
Guest_username = specifies the user name used to map a virtual user to a local user.
Chown_uploads = yes. Change the object owner to root.
Chown_username = root
Deny_email_enable = yes whether anonymous users are allowed to use certain email addresses
Banned_email_file = // any specified path/XX/
Pasv_enable = yes the server uses the passive mode.
User_config_dir =/any specified path // any file directory specifies the path where the virtual user stores the configuration file
Upload ASCII transmission mode ascii_download_enable = Yes enable the download ASCII transmission mode banner_file =/var/vsftpd_banner_file after the user connects, the welcome information in this file is the relevant information idle_session_timeout = 600 (seconds) 10 minutes after the user session is idle, data_connection_timeout = 120 (seconds) disconnects the data connection for 2 minutes. accept_timeout = 60 (seconds) disconnects the client from idle for 1 minute and then disconnects connect_timeout = 60 (seconds) after one minute of interruption, connect local_max_rate = 50000 (BITE) again. The local user transmission rate is 50 K anon_max_rate = 30000 (BITE) anonymous user transfer rate 30 K pasv_min_port = 5000 change the client's data connection port to max_clients = 6000 maximum number of FTP connections between pasv_max_port = 200 5000-6000 max_clients = 5555 maximum number of connections per IP address listen_port = from port 5555 for data connection local_enble = Yes local account can log on to write_enable = no local account, no