Pure-ftpd Setup for Linux&FreeBSD
wget -P tar/ ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.20.tar.bz2 tar xvfj tar/pure-ftpd-1.0.20.tar.bz2
cd pure-ftpd-1.0.20
./configure --with-quotas \
--with-language=simplified-chinese \
--with-mysql \
--with-largefile make
make check
make install chmod 755 configuration-file/pure-config.pl
cp configuration-file/pure-config.pl /usr/local/sbin/
cp configuration-file/pure-ftpd.conf /usr/local/etc/
cd .. echo "/usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf" >> /etc/rc.local
FreeBSD Setup
cd /usr/ports/ftp/pure-ftpd
make install clean
#用ports安装以后
cd /usr/local/etc
cp pure-ftpd.conf.sample pure-ftpd.conf
echo 'pureftpd_enable="YES"' >> /etc/rc.conf
#启动/关闭命令:
usr/local/etc/rc.d/pure-ftpd start/stop
#默认安装是支持匿名用户的,需要进行下面的步骤
mkdir /home/ftp
pw useradd ftp -d /home/ftp -s /sbin/nologin
#如果要进行验证用户的登陆,进行(以upload用户为例):
mkdir /home/upload //给upload新建一个目录
pw groupadd ftp //增加一个ftp组
pw useradd upload -g ftp -d /home/upload -s /bin/sh //增加用户upload并放到ftp组里
passwd upload //设置upload的密码
chown upload /home/upload
chgrp upload /home/upload
#就可以可以用这个用户进行用户的认证了
#还有注意pure-ftpd.conf中的几个配置文件的含义
MaxClientsNumber 50 服务器总共允许同时连接的最大用户数
DisplayDotFiles yes 即使客户端没有发送 '-a' 选项也列出隐藏文件( dot-files )
MaxIdleTime 15 客户端允许的最大的空闲时间(分钟,缺省15分钟)
UnixAuthentication yes (注意从U到yes之间必须是28个字符的距离)如果你要启用 简单的 Unix系统认证方式(/etc/passwd), 去掉下面行的注释
AnonymousBandwidth 8 匿名用户的最大带宽(KB/s)
AllowUserFXP yes 仅允许认证用户进行 FXP 传输
AnonymousCantUpload yes 不接受匿名用户上传新文件( no = 允许上传)
AltLog w3c:/var/log/pureftpd.log 使用标准的W3C格式创建一个额外的日志文件。(与大部分的商业日志分析器兼容)











































