码迷,mamicode.com
首页 > 其他好文 > 详细

500 OOPS: vsftpd: refusing to run with writable root inside chroot()

时间:2016-02-15 00:48:19      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:

Ubuntu 12.04 64bit系统下安装的vsftpd,在登陆时提示500 OOPS: vsftpd: refusing to run with writable root inside chroot()。根本原因在于,从vsftpd_2.3.5版开始,取消了根目录的可写权限。因此,网上的普遍解决方案是以下两种:

方案一

$ chmod a-w /vaf/ftp

方案二

$ vim /etc/vsftpd.conf add the following

allow_writeable_chroot=YES

看起来,貌似第二种方式是更完美,但当我把allow_writeable_chroot=YES配置项加入的时候,重启vsftpd服务的时候发现不能正常工作了(21端口无程序在监听),于是上网查找解决方案,发现说法五花八门的,有人说配置项是allow_writable_chroot(少了个e),还有说配置项是allow_writable_root(少了ch)等的,经过我测试,发现全都不行。后来总算找到一个可行的方法。

Ubuntu 12.04 64bit的完整解决方案

$ apt-get install python-software-properties

$ sudo add-apt-repository ppa:thefrontiergroup/vsftpd

$ sudo apt-get update

$ sudo apt-get install vsftpd

$ vim /etc/vsftpd.conf and add the following

chroot_local_user=YES

allow_writeable_chroot=YES

$ sudo service vsftpd restart

500 OOPS: vsftpd: refusing to run with writable root inside chroot()

标签:

原文地址:http://www.cnblogs.com/app-lin/p/5189772.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!