Generally in a variety of Linux distributions, the default with the FTP software is vsftp, from the various Linux distributions to vsftp recognition can be seen, vsftp should be a good FTP software.
(1) Check whether the VSFTPD software is installed
Use the following command to detect if the VSFTPD software is installed, Rpm-qa |grep vsftpd, for example, the results shown in my CentOS 5.6 are as follows:
650) this.width=650; "src=" http://www.2cto.com/uploadfile/2011/0730/20110730102414110.jpg "style=" border:none; width:630px;height:36px; "/>
If not installed, you can download the installation, or you can use the software source to install it. Don't repeat it here.
(2) Use of VSFTPD software
Using VSFTPD software, mainly includes the following commands:
Start Ftp:service vsftpd Start
Stop Ftp:service vsftpd Stop
Restart Ftp:service vsftpd Restart
650) this.width=650; "src=" http://www.2cto.com/uploadfile/2011/0730/20110730102415194.jpg "style=" border:none; width:630px;height:109px; "/>
Or use a command with a path:
650) this.width=650; "src=" http://www.2cto.com/uploadfile/2011/0730/20110730102415308.jpg "style=" border:none; width:630px;height:110px; "/>
(3) Configuration of VSFTPD
The FTP configuration file is mainly three, in the centos5.6 in the/etc/vsftpd/directory, respectively:
Ftpusers This file is used to specify that those users cannot access the FTP server.
User_list the default account that the file uses to indicate that the FTP is not accessible by default
Vsftpd.conf VSFTPD's master configuration file
(4) below we use VI to edit the vsftpd.conf file
User Login Control:
Anonymous_enable=yes, allowing anonymous users to log on.
No_anon_password=yes, anonymous users do not need to enter a password when they log on.
Local_enable=yes, allowing local users to log on.
Deny_email_enable=yes, you can create a file to save the blacklist of some anonymous emails to prevent these people from using Dos attacks.
Banned_email_file=/etc/vsftpd/banned_emails, the directory where the email blacklist is saved (default)
User Rights control:
Write_enable=yes, turn on global uploads
local_umask=022, the local file upload umask is set to 022, system default.
Anon_upload_enable=yes, allow anonymous users to upload, of course, in the case of Write_enable=yes. You must also create a directory that allows FTP users to read and write.
Anon_mkdir_write_enable=yes, allow anonymous to create a directory with flowers
Chown_uploads=yes, anonymous users upload the file is the main conversion to other users, the general recommendation is root.
Chown_username=whoever, change the whoever here to the owner to be converted, suggest root
Chroot_list_enable=yes, use a list to limit which users can only be active in their own directory.
Chroot_list_enable=/etc/vsftpd/chroot_list, specifying the user list file
Nopriv_user=ftpsecure, specify a secure account to allow FTP to be fully isolated and without privileged accounts
Other recommendations are not configured.
User connection and timeout settings:
idle_session_timeout=600, default time-out
data_connection_timeout=120, setting the default data connection time-out
(4) Server logs and welcome information
Dirmessage_enable=yes, allowing information to be displayed for the configuration directory
Ftpd_banner=welcome to blah FTP service. Welcome information for FTP
Xferlog_enable=yes turning on the logging feature
Xferlog_file=/var/log/xferlog the location of the log record file
We can change each of the above settings, and then restart the FTP service to implement the FTP configuration.
This article is from the "bxing" blog, make sure to keep this source http://bxing.blog.51cto.com/1677994/1877364
FTP Server built under Linux