当前位置: 首页 > others > 正文

freebsd5.4 配置 pureftp

./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

本文固定链接: https://www.2hei.net/2006/12/28/freebsd54-%e9%85%8d%e7%bd%ae-pureftp/ | 2hei.net

该日志由 u2 于2006年12月28日发表在 others 分类下,
原创文章转载请注明: freebsd5.4 配置 pureftp | 2hei.net

报歉!评论已关闭.