官网:
www.pureftpd.org
1.下载安装 pureftpd
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.42.tar.bz2 --no-check-certificate
#
tar jxf pure-ftpd-1.0.42.tar.bz2
#
cd pure-ftpd-1.0.42
# ./configure --prefix=/usr/local/pureftpd --without-inetd --with-altlog --with-puredb --with-throttling --with-peruserlimits --with-tls
# make && make install
2.配置
#
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
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
3.启动 pureftpd
#
/usr/local/pureftpd/sbin/pure-config.pl /usr/local/pureftpd/etc/pure-ftpd.conf
4.建立账号
#
mkdir /data/www/
#
useradd www
#
chown -R www:www /data/www/
#
/usr/local/pureftpd/bin/pure-pw useradd ftp_user1 -uwww -d /data/www/
5.pure-ftpd 相关操作
创建虚拟用户数据库:
/usr/local/pureftpd/bin/pure-pw mkdb
再次创建用户:
/usr/local/pureftpd/bin/pure-pw useradd ftp_user2 -uwww -d /tmp
列出当前账号:
/usr/local/pureftpd/bin/pure-pw list
删除账号:
/usr/local/pureftpd/bin/pure-pw userdel ftp_user2