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

vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法

时间:2016-05-11 19:24:55      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:

---恢复内容开始---

最近在安装了vsftpd后 添加了虚拟账户后 新建用户 为新用户创立独立的工作目录

因为虚拟用户在工作目录需要上传文件 所以必须拥有此目录的W权限,但每当给此目录加上W权限后,就会报以下错误:

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

网上搜索解决方案 都说从2.3.5之后,vsftpd增强了安全检查,如果用户被限定在了其主目录下,则该用户的主目录不能再具有写权限了!如果检查发现还有写权限,就会报该错误。

应该按以下两种方案修改

1.chmod a-w /path/user_working_directory

或者

2.allow_writeable_chroot=YES

但需要在/path/user_working_directory 目录下上传就必须有W权限,因此chmod a-w /path/user_working_directory 不可行

添加allow_writeable_chroot=YES  后vsftpd又报错,切且失去了安全性,故不可取

最终正确解决方案是将user_working_directory 的所属主改为vsftpd.conf中

  guest_username=ftpuser

ftpuser所有即可

---恢复内容开始---

最近在安装了vsftpd后 添加了虚拟账户后 新建用户 为新用户创立独立的工作目录

因为虚拟用户在工作目录需要上传文件 所以必须拥有此目录的W权限,但每当给此目录加上W权限后,就会报以下错误:

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

网上搜索解决方案 都说

chmod a-w /path/username

或者

allow_writeable_chroot=YES

vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法

标签:

原文地址:http://www.cnblogs.com/betajj-blog/p/5482851.html

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