Article Title: Install the vsftpd service in Linux. 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.
Vsftp means Very Security Ftp, which is actually an FTP software.
1. Download:
Download the software from the cloud Software Park. The software name is vsftpd-2.2.2.tar.gz.
2. Compile the source code:
Tar xvzf vsftpd-2.2.2.tar.gz (unzipping and go to the unzipping directory vsftpd-2.2.2)
3. Copy the vsftpd-2.2.2 to the/etc directory
Cp-r./vsftpd-2.2.2/etc/vsftpd-2.2.2
4. Modify the directory permission. For convenience, set the permission to 777.
Chmod-R 777/etc/vsftpd-2.2.2
5. Compile the source file
Cd/etc/vsftpd-2.2.2
Make
6. Install
Make install
7. Edit the Configuration:
Use vi to open vsftpd. conf. You don't need to worry about it by default.
Add Listen = YES Directly to the last line (independent VSFTPD server)
8. Start the service:
/Etc/init. d/vsftpd start
Use netstat-tnl to check whether port 21 has been installed successfully.
At this time, FTP is used, but anonymous access is not allowed.
9. 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
10. Auto Start
Open it with vi and add/etc/init. d/vsftpd start 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
[1] [2] Next page