“500 OOPS:vsftpd:拒绝在 chroot() 内使用可写根运行” - 在 Debian 上登录失败

shg*_*Inc 8 linux ftp chroot debian-wheezy vsftpd

我安装了 vsFTPd 以在Debian 7.3 (Wheezy)上运行 FTP 服务器。我检查了 vsFTPd 版本是2.3.5,我像这样配置它:

listen=YES
local_enable=YES
write_enable=YES
chroot_local_user=YES
pasv_min_port=15000
pasv_max_port=15200
allow_writeable_chroot=YES
Run Code Online (Sandbox Code Playgroud)

我按照这些文章来解决这个问题:

和谷歌和论坛上的许多其他人一样,但我的问题没有解决。

注意:我已经在Ubuntu 12.04(精确穿山甲)上解决了这个问题,但该解决方案在 Debian 7.3 上不起作用。

我真的搞混了?!

shg*_*Inc 9

我搜索了太多太多,我真的很困惑,所以我决定将 vsFTPd 更改为 SFTP 或其他内容,直到找到有关此错误的链接。

然后我发现这个问题在 vsFTPd 版本 3 中得到了解决。所以我搜索了如何升级它并且可以找到将jessie存储库添加到我的 Debian 7.3 安装并升级它:

echo "deb http://ftp.us.debian.org/debian jessie main contrib non-free" >> /etc/apt/sources.list
aptitude update
aptitude upgrade vsftpd
echo "allow_writeable_chroot=YES" >> /etc/vsftpd.conf
service vsftpd restart
Run Code Online (Sandbox Code Playgroud)

现在它对我来说正常工作。