存档

2006年12月 的存档

freebsd5.4 配置 pureftp

2006年12月28日 评论已被关闭

./configure

–prefix=/usr/local/pureftpd

–with-mysql=/usr/local/mysql

–with-puredb

–with-paranoidmsg

–with-shadow

–with-welcomemsg

–with-uploads cript

–with-quotas

–with-cookie

–with-pam

–with-virtualhosts

–with-virtualroot

–with-diraliases

–with-sysquotas

–with-ratios

–with-ftpwho

–with-throttling

–with-language=simplified-chinese

–with-mysql=/usr/local/mysql

pure-authd -s /var/run/ftpd.sock -r /usr/bin/my-auth-program &

/usr/local/apache2/htdocs/ftpuser

freebsd# mkdir /usr/local/apache2/htdocs/ftpuser

freebsd# chown -R 1024:6000 /usr/local/apache2/htdocs/ftpuser

freebsd# /usr/local/bin/pure-pw useradd download -u 1024 -g 6000 -d /usr/local/apache2/htdocs/ftpuser

Password:   down    输入二次

Enter it again: down

建立用户数据库:

freebsd# /usr/local/bin/pure-pw mkdb /usr/local/etc/pureftpd.pdb -f /usr/local/etc/pureftpd.passwd

修改配置文件。

freebsd# cd /usr/local/etc/

freebsd# cp pure-ftpd.conf.sample pure-ftpd.conf

找到# PureDB /etc/pureftpd.pdb

修改成 /usr/local/etc/pureftpd.pdb

启动pureftpd

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

分类: others 标签: