Using PURE-FTPD to implement FTP functionality

Source: Internet
Author: User

Environment: CENTOS6 Tool PURE-FTPD

ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/

Version pure-ftpd-1.0.42


Install FTP

./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

[[email protected] pure-ftpd-1.0.42]# make install

[email protected] configuration-file]# CP pure-ftpd.conf/usr/local/pureftpd/etc/

[email protected] configuration-file]# CP pure-config.pl/usr/local/pureftpd/sbin/

[[email protected] sbin]# chmod 755 pure-config.pl Modify Execute file permissions

[Email protected] etc]# vim pure-ftpd.conf

DG Delete all configuration contents

New configuration

Create a user who is insinuate www

Specify Directory/tmp/tmp

Chown-r www/tmp/tmp/

Create a pureftp insinuate user Ftpuser1

[Email protected] etc]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW useradd ftpuser1-uwww-d/tmp/tmp/

password:111

Enter it again:111

Create a library that holds accounts and passwords

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

Generate PUREFTPD.PASSWD and pureftpd.pdb passwords and library files in the/usr/local/pureftpd/etc/directory

Next start the service

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

Connect to FTP

[Email protected] ~]# lftp [email protected]

Password:

lftp [email protected]:~> ls

Drwxr-xr-x 3 501 0 4096 Jan 17 20:30.

Drwxr-xr-x 3 501 0 4096 Jan 17 20:30..

-rw-r--r--1 0 0 9 Jan 17 20:30 123

Drwxr-xr-x 2 0 0 4096 Jan 20:30 AABBC

lftp [Email protected]:/>

Success


Using PURE-FTPD to implement FTP functionality

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.