January 29, 2004

Pure-FTPd初步接触

看了Netkiller(陈景峰)写的Pure-FTPd + LDAP + MySQL + PGSQL + Virtual-Users + Quota How To感觉Pure-FTPd还是比较强大的,今天先安装一下。

wget ftp://ftp.pureftpd.org/pub/pureftpd/releases/pure-ftpd-1.0.17a.tar.gz

tar zvxf pure-ftpd-1.0.17a.tar.gz

cd pure-ftpd-1.0.17a

./configure --prefix=/usr/local/pureftpd --with-mysql --with-puredb --with-shadow --with-pam --with-paranoidmsg --with-welcomemsg --with-uploadscript --with-cookie --with-virtualchroot --with-virtualhosts --with-virtualroot --with-diraliases --with-quotas --with-sysquotas --with-ratios --with-ftpwho --with-throttling --with-language=simplified-chinese

make

make check

make install

mkdir /usr/local/pureftpd/etc #搞不明白为什么系统没建立这个文件夹


cd configuration-file
chmod u+x pure-config.pl
cp pure-config.pl /usr/local/pureftpd/bin
cp pure-ftpd.conf /usr/local/pureftpd/etc
cd ..
cp pureftpd* /usr/local/pureftpd/etc/

修改pure-ftpd.conf 让他基本使用起来,并保证基本的安全,过几天再慢慢研究

vi /usr/local/pureftpd/etc/pure-ftpd.conf
默认的配置文件只支持匿名登录,你只要稍微修改一下就可以支持lunix系统用户登陆了


ChrootEveryone yes
AnonymousOnly no
#是否只让匿名登录
NoAnonymous yes
#不开放匿名登入
UnixAuthentication yes
#如果你想要有简单的Unix(/etc/passwd)的认证的話
ProhibitDotFilesWrite no
ProhibitDotFilesRead no
#(”.”)开头的文件能不能被读/写

启动pure-ftpd

/usr/local/pureftpd/bin/pure-config.pl /usr/local/pureftpd/etc/pure-ftpd.conf

用你的客户端试验一下,看到的登录信息可是中文哦

今天不讲详细的配置了,以后会讲具体的应用,还有访问pure-ftpd的官方网站非常不方便,见鬼了,国内怎么这样的网站都要屏蔽了,这可是开源软件网站呀:(

frank发表 于January 29, 2004 10:57 PM | 回复(2) | 引用(0)
回复

我的客户端进去登陆信息怎么没有中文啊?谢谢

Posted by: 李明 at June 8, 2004 09:19 AM

请问 这句是什么意思啊:
/usr/local/pureftpd/bin/pure-config.pl /usr/local/pureftpd/etc/pure-ftpd.conf
不太象是命令,如要运行是不是可以用: ./pure-ftpd.conf?
谢谢

Posted by: 李明 at June 3, 2004 03:15 PM
发表回复









记住我的信息?