手动升级vsftpd到2.1.0正式版本

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
lantian
帖子: 48
注册时间: 2008-06-21 8:24

手动升级vsftpd到2.1.0正式版本

#1

帖子 lantian » 2009-03-01 1:04

现在vsftpd已经发布2.1.0正式版本了,但是ubuntu的还是2.0.7并没有更新。我们自己手动更新一下。
目前最新版本为(vsftpd-2.1.1pre1)尝鲜的朋友也可以下载这个来编译。
假设你已经具有编译环境了,这里不再重复说明如果配置编译环境了。
$sudo wget ftp://vsftpd.beasts.org/users/cevans/vs ... 1.0.tar.gz
$sudo tar xvfz vsftpd-2.1.0.tar.gz
$sudo cd vsftpd-2.1.0
添加 VSFTPD 对 ssl 的支持
$sudo vi builddefs.h

代码: 全选

........
#define VSF_BUILD_SSL
//将 VSF_BUILD_SSL 前的 undef 更改为 define
.........
//这里修改引用头文件使其支持SSL连接,如果你使用vsftpd+ssl建立服务器可以不选择安装这个。
$sudo apt-get install libssl-dev
//这个安装的是openssl的开发包,如果你使用vsftpd+ssl建立服务器可以不选择安装这个。
$sudo make
编译完成后,进行以下步骤:
$sudo service vsftpd stop //停止现有vsftpd服务
$sudo mv /usr/sbin/vsftpd /usr/sbin/vsftpd.2.0.7.bak //先做个备份防止错误操作后无法恢复。
$sudo cp /home/username/vsftpd-2.1.0/vsftpd /usr/sbin
$sudo service vsftpd start

BTW:不知道为什么ubuntu的openssl也不更新,目前官方最新版本是openssl 0.9.8.j而且目前ubuntu 8.10的这个0.9.8g版本的好像有个严重的安全bug。


Feb 2009 - vsftpd-2.1.0 released

* vsftpd-2.1.0 is released - with fixes and enhanced SSL support. Various build fixes were applied. Implicit SSL support was added. The ASCII download support now matches ProFTPd. A couple of interoperability problems with broken clients were fixed. SSL session reuse is now required by default to close a loophole in the FTP protocol. Some log amessages were tidied up. Files are now locked properly for upload, fixing corruption with simultaneous uploads. Memory limits per-process are now applied. STOU was fixed to use the original filename where possible. And lots more; see the Changelog. . Please refer to the v2.1.0 Changelog and vsftpd FAQ (frequently asked questions) for a list of common questions!
* After numerous requests, I now have a PayPal button for donations. If you use vsftpd, like it, and think it's worthy of a donation, then click on the Paypal button on the left of the page.
* ftp.freebsd.org switched to vsftpd.
* vsftpd tarballs are now GPG signed by me.

下载:ftp://vsftpd.beasts.org/users/cevans/vs ... 1.0.tar.gz
改进:ftp://vsftpd.beasts.org/users/cevans/un ... /Changelog
头像
lerosua
论坛版主
帖子: 8455
注册时间: 2007-11-29 9:41
联系:

Re: 手动升级vsftpd到2.1.0正式版本

#2

帖子 lerosua » 2009-03-01 10:13

等源升级
回复