20th Chapter Configuration FTP Service

Source: Internet
Author: User
Tags bz2 file transfer protocol

" What is FTP"

Maybe you are not unfamiliar with FTP, but do you know what FTP is really a thing. FTP is the English abbreviation for file Transfer Protocol (document Transfer Protocol), while Chinese is called "the Protocol". A two-way transmission of control files for use on the Internet. At the same time, it is also an application (application). It allows users to connect their PCs to all the servers running FTP protocols around the world and access a large number of programs and information on the server. The primary role of FTP is to have users connect to a remote computer (which runs an FTP server program) to see what files are on the remote computer, then copy the files from the remote computer to the local computer, or send the files from the local computer to the remote computer. FTP uses more than NFS, so you must be skilled in configuring it.

" Configure FTP"

Install Redhat/centos system may be associated with the FTP installed, the system default with FTP is VSFTP, more commonly used, configuration is also very simple. But the author often use the FTP software for PURE-FTPD. Because the software is more flexible and secure than the VSFTP configuration. The following is the author's process of configuring PURE-FTPD:

Download the latest PURE-FTP source pack pure-ftpd-1.0.21.tar.bz2

# wget HTTP://SYSLAB.COMSENZ.COM/DOWNLOADS/LINUX/PURE-FTPD-1.0.21.TAR.BZ2

#tar JXVF pure-ftpd-1.0.21.tar.bz2

#cd pure-ftpd-1.0.21

./configure--prefix=/usr/local/pureftpd--without-inetd--with-altlog--with-puredb--with-throttling- With-largefile--with-peruserlimits--with-tls--with-language=simplified-chinese

#make && make Install

Start

With the configuration file

#mkdir/usr/local/pureftpd/etc

#cd Configuration-file

#cp pure-ftpd.conf/usr/local/pureftpd/etc/pure-ftpd.conf

#cp pure-config.pl/usr/local/pureftpd/sbin/pure-config.pl

#chmod 755/usr/local/pureftpd/sbin/pure-config.pl

Before starting pure-ftp need to modify the configuration file, the configuration file for/usr/local/pureftpd/etc/pure-ftpd.conf, you can open look, there is a lot of content, if your English is good, you can study a little bit, the following is my configuration file, If you have trouble, just copy the past.

____________________________________ Chrooteveryone Yes
Brokenclientscompatibility No Maxclientsnumber 50
Daemonize Yes
Maxclientsperip 8
Verboselog No
Displaydotfiles Yes
AnonymousOnly No
Noanonymous No
Syslogfacility FTP
Dontresolve Yes
MaxIdleTime 15
Puredb/usr/local/pureftpd/etc/pureftpd.pdb
Limitrecursion 2477 8
Anonymouscancreatedirs No
Maxload 4
Antiwarez Yes
Umask 133:022
Minuid 100
ALLOWUSERFXP No
ALLOWANONYMOUSFXP No
Prohibitdotfileswrite No
Prohibitdotfilesread No
Autorename No
Anonymouscantupload No
Pidfile/usr/local/pureftpd/var/run/pure-ftpd.pid
Maxdiskusage 99
Customerproof Yes

################################### #到此结束, save #########################

Start command:/usr/local/pureftpd/sbin/pure-config.pl/usr/local/pureftpd/etc/pure-ftpd.conf

###### #接下来该建立用户了 ###############

#/USR/LOCAL/PUREFTPD/BIN/PURE-PW Useradd ftp_test-u www-d/data/wwwroot where-u associates the virtual user ftp_test with the system user www. The-D argument allows ftp_test to access only its home directory. When the above command is executed, a password is prompted.

#/USR/LOCAL/PUREFTPD/BIN/PURE-PW MKDB

A VSFTP application is also provided as a reference:

VSFTP uses MySQL to authenticate virtual accounts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.