Using PURE-FTPD to build an FTP service

Source: Internet
Author: User

Using PURE-FTPD to build an FTP service

PURE-FTPD official website http://www.pureftpd.org/project/pure-ftpd

wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.32.tar.bz2

Tar jxf pure-ftpd-1.0.32.tar.bz2

CD pure-ftpd-1.0.32

./configure--prefix=/usr/local/pureftpd--without-inetd--with-altlog--with-puredb--with-throttling--with- Peruserlimits--with-tls

Make && make install


cd/usr/local/pureftpd/

CD Configuration-file

Mkdir-p/usr/local/pureftpd/etc/

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


VIM/USR/LOCAL/PUREFTPD/ETC/PURE-FTPD.CONF//Contents are as follows:

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 3136 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



Mkdir/data/ftp #创建ftp服务的目录

Useradd www #创建以哪个账号的身份登录ftp

/USR/LOCAL/PUREFTPD/BIN/PURE-PW useradd test1-unobody-d/data/ftp #建立虚拟账号

Test1 link identification, nobody is the user name

/USR/LOCAL/PUREFTPD/BIN/PURE-PW mkdb #创建密码文件, let him take effect.

/USR/LOCAL/PUREFTPD/BIN/PURE-PW List #列出用户

/USR/LOCAL/PUREFTPD/BIN/PURE-PW Userdel test1 #删除账号


command to start the PURE-FTPD service:

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


ls/usr/local/pureftpd/etc/


On the client login remote FTP, there are both commands lftp,ftp

lftp [email protected] need to install this command yum install-y FLTP

FTP 192.168.1.169 need to install this command Yum install-y FTP


Iptables-nvl

Service Iptables Stop

/etc/inid.d/iptables Save


Getenforce


View Log Tail/var/log/messages


grep nobody/etc/passwd

Change his UID to a limit of 99.

vim/etc/passwd




Reboot

Killall PURE-FTPD

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


No, just another user, try it.

/USR/LOCAL/PUREFTPD/BIN/PURE-PW Useradd test3-ubier-d/data/ftp


Sign up to test

Download Get AAA

Upload put BBB



This article is from the "Bill Linux Operations Notes" blog, please be sure to keep this source http://chenshoubiao.blog.51cto.com/6159058/1885204

Using PURE-FTPD to build an 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.