Configuring the FTP Service

Source: Internet
Author: User

20th. Configuring the FTP service

" What is FTP"

Maybe you're not a stranger to ftp , but do you know what ftp is? FTP is the abbreviation for file Transfer Protocol(document Transfer Protocol), and Chinese is called "Interfax protocol". Used for two-way transmission of control files on the Internet . At the same time, it is also an application (application). It allows users to connect their PC to all servers running the FTP protocol around the world, accessing 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 and then copy the files from the remote computer to the local computer. or send the local computer's files to the remote computer. FTP uses more than NFS , so you must be skilled at configuring it.

" Configure FTP"

Install Redhat/centos System When you may be associated with the FTP installed, the system default with the FTP is vsftp, more commonly used, configuration is very simple. But I often use the ftp software for pure-ftpd. Because this software is more flexible and secure than the vsftp configuration. The following is the process of configuring pure-ftpd for the author:

Download the latest pure-ftp source package 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, you need to modify the configuration file, configuration file for/usr/local/pureftpd/etc/pure-ftpd.conf, you can open to see, there is a lot of content, if you have good English, you can study it, here is my configuration file, If you are in trouble, copy the past directly.

____________________________________

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 2000 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 to #########################

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

####### The next step is to set up a user ###############

#/USR/LOCAL/PUREFTPD/BIN/PURE-PW Useradd ftp_test-u www-d/data/wwwroot wherein,-u will virtual user Ftp_test is associated with the system user www . The- d parameter enables ftp_test to access only its home directory. After executing the above command, you will be prompted to enter a password.

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

In addition to provide a CentOS5.5 under the source of installation vsftpd as a reference:

CentOS 5.5 Compile and install vsftpd-2.3.4 Configure virtual users

Copyright notice: I feel like I'm doing a good job. I hope you can move your mouse and keyboard for me to order a praise or give me a comment, under the Grateful!_____________________________________________________ __ Welcome reprint, in the hope that you reprint at the same time, add the original address, thank you with

Configuring the FTP Service

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.