1. 安装(linux,freebsd,solaris...)
wget
tar zxf pure-ftpd-1.0.17a.tar.gz
cd pure-ftpd-1.0.17a
./configure --with-everything && make && make install
(推荐使用with-everything选项,这样他会安装一个包含所有特性的ftp服务器,
如:altlog,cookies,throttling, ratios, ftpwho, upload script, virtual users(puredb),
quotas, virtual hosts, directory aliases and external authentication.)
cd configuration-file
chmod u+x pure-config.pl
cp pure-config.pl /usr/local/bin
cp pure-ftpd.conf /usr/local/etc
2. 修改配置文件,添加用户
将pure-ftpd.conf文件里面的pdb取消注释
将最小的uid和gid都改成99--nobody的用户
TrustedGID 99
MinUID 99
开启日志功能
vi /usr/local/etc/pure-ftpd.conf
PureDB /etc/pureftpd.pdb 去掉这行开始的#
添加用户:
pure-pw useradd books -u nobody -g nobody -d /home/samba/exchange/book
添加完用户后需要:
pure-pw mkdb
3. 运行pure-ftpd
pure-config.pl /usr/local/etc/pure-ftpd.conf
/etc/ini.d/iptables
# Default firewall configuration:
IPTABLES_MODULES="ip_nat_ftp ip_conntrack_ftp"
阅读(1764) | 评论(0) | 转发(0) |