Install PURE-FTPD, configure, Debug

Source: Internet
Author: User

Installing PURE-FTPD

1. Download the Software

PURE-FTPD official website is HTTP://WWW.PUREFTPD.ORG/PROJECT/PURE-FTPD not recommended to use the latest version, the latest version may have some minor bugs.

[Email protected] ~]# cd/usr/local/src/[[email protected] src]# wget http://download.pureftpd.org/pub/pure-ftpd/ releases/pure-ftpd-1.0.42.tar.bz2

2. Installing PURE-FTPD

[[Email protected] src]# tar jxf pure-ftpd-1.0.42.tar.bz2[[email protected] src]# CD Pure-ftpd-1.0.42[[email protected] P ure-ftpd-1.0.42]#./configure--prefix=/usr/local/pureftpd--without-inetd--with-altlog--with-puredb-- With-throttling--with-peruserlimits--with-tls[[email protected] pure-ftpd-1.0.42]# make && make install
Configure PURE-FTPD

1. Modify the configuration file

PURE-FTPD compile and install is done quickly, and there are few errors, it should be configured below:

[[Email protected] pure-ftpd-1.0.42]# CD Configuration-file[[email protected] pure-ftpd-1.0.42]# mkdir-p/usr/local/ Pureftpd/etc/[[email protected] configuration-file]# CP pure-ftpd.conf/usr/local/pureftpd/etc/pure-ftpd.conf[[ Email protected] configuration-file]# CP Pure-config.pl/usr/local/pureftpd/sbin/pure-config.pl[[email protected] configuration-file]# chmod 755/usr/local/pureftpd/sbin/pure-config.pl

Before starting PURE-FTPD, 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 the English good, you can study, the following is my configuration file, If you are in trouble, copy the past directly:

chrooteveryone               yesbrokenclientscompatibility  nomaxclientsnumber             50Daemonize                    yesMaxClientsPerIP              8VerboseLog                   noDisplayDotFiles              yesAnonymousOnly                noNoAnonymous                  noSyslogFacility               ftpdontresolve                  yesmaxidletime                  15PureDB                         /usr/local/pureftpd/etc/pureftpd.pdbLimitRecursion               3136 8anonymouscancreatedirs       noMaxLoad                      4AntiWarez                    yesUmask                         133:022minuid                       100AllowUserFXP                 noAllowAnonymousFXP            noprohibitdotfileswrite       noprohibitdotfilesread         noAutoRename                   noAnonymousCantUpload          noPIDFile                      /usr/local/pureftpd/var/run/pure-ftpd.pidMaxDiskUsage                99CustomerProof                yes 

2. Start PURE-FTPD

[Email protected] ~]#/usr/local/pureftpd/sbin/pure-config.pl/usr/local/pureftpd/etc/pure-ftpd.conf

If it is successful, it displays a long line of information that starts with running, or it is an error message.

3. Create an Account

[[email protected] ~]# mkdir/data/www/[[email protected] ~]# useradd www[[email protected] ~]# chown-r www:www/data/www /[[email protected] ~]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW useradd ftp_user1-uwww-d/data/www/password:enter it again:

Where-u associates the virtual user Ftp_user1 with the system user www, that is, using the Ftp_user1 account to log in to FTP, will be the identity of the WWW to read files or download files. The directory behind the-D is the home directory for the Ftp_user1 account, which allows Ftp_user1 to access only its home directory/data/www/. It's not done yet, and the most critical step is to create a user information database file:

[Email protected] ~]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW MKDB

PURE-PW can also list the current FTP account, of course, you can delete an account, we create an account:

[Email protected] ~]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW useradd ftp_user2-uwww-d/tmp[[email protected] ~]#/usr/local /PUREFTPD/BIN/PURE-PW MKDB

List Current Account:

[Email protected] ~]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW list

The command to delete the account is:

[Email protected] ~]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW Userdel ftp_user2
Test PURE-FTPD

The tool to be used for testing is called LFTP, which is installed first:

[email protected] ~]# Yum install-y lftp

Test:

[[email protected] ~]# touch / data/www/123.txt[[email protected] ~]# lftp [email protected] Password: lftp [email  protected]:~> lsdrwxr-xr-x    2 514         www              4096  jun 12 11:14 .drwxr-xr-x    2 514         www              4096  JUN 12 11:14&NBSP, .... -rw-r--r--    1 514        www                  0 jun 12  11:14 123.txt 

After logging in, use the ls command to list what files are in the current directory.


Install PURE-FTPD, configure, Debug

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.