工作中因为要用到pure-ftpd,所以就在这三个版本上安装了一遍:

Debian 安装

#apt-get install pure-ftpd

#group ftpgroup

#useradd –g ftpgroup –d /dev/null –s /bin/fales ftpuser

创建虚拟用户:

#pure-pw useradd ftptest –u ftpuser –g ftpgroup –d /data/web/zhua –m

#pure-pw mkdb

#cd /etc/pure-ftpd/auth

#ln –s /etc/pure-ftpd/conf/PureDB 60puredb

#/etc/init.d/pure-ftpd restart

root@localhost:/etc/pure-ftpd/conf# /etc/init.d/pure-ftpd restart

Restarting ftp server: Running: /usr/sbin/pure-ftpd -l puredb:/etc/pure-ftpd/pureftpd.pdb -l pam -H -E -8 UTF-8 -A -u 1000 -O clf:/var/log/pure-ftpd/transfer.log –B

Gentoo安装

  #emerge -av "net-ftp/pure-ftpd"

  #vim /etc/conf.d/pure-ftpd

    IS_CONFIGURED="yes"

AUTH="-l puredb:/etc/pureftpd.pdb"

MISC_OTHER="-A -B -j -D -Z"

 #/etc/init.d/pure-ftpd start

 #pure-pw mkdb /etc/pureftpd.pdb -f /etc/pureftpd.passwd

 # pure-pw useradd ftptest –u ftpuser –g ftpgroup –d /data/web/zhua –m

 #/etc/init.d/pure-ftpd restart

Centos安装

   解压完后进入目录

   #cd /usr/local/src/pure-ftpd-1.0.30

   #./configure –with-puredb(选择虚拟用户认证方式) --with-language=simplified-chinese

   #make && make install

   #cp contrib/redhat.init /etc/init.d/pure-ftpd

   #chmod 755 /etc/init.d/pure-ftpd

   #cp configuration-file/pure-ftpd.conf /etc/

   #cp configuration-file/pure-config.pl /usr/local/sbin/pure-config.pl

   #chmod 755 /usr/local/sbin/pure-config.pl

   #vim /etc/pure-ftpd.conf

PureDB   /etc/pureftpd.pdb

  #/usr/local/sbin/pure-ftpd &

  #kill 10443

  #/etc/init.d/pure-ftpd stop

  # /etc/init.d/pure-ftpd start

  #  groupadd ftpgroup

  #  useradd -g ftpgroup -d /dev/null -s /bin/false ftpuser

  #  pure-pw useradd ftptest -u ftpuser -g ftpgroup -d /var/ftp/

  #  pure-pw mkdb /etc/pureftpd.pdb -f /etc/pureftpd.passwd

  #  /etc/init.d/pure-ftpd restart

  #  iptables -I INPUT -p tcp --dport 21 -m state --state NEW -j ACCEPT

  #  iptables-save