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

image

安装vsftpd3.0之后版本,你会发现登陆时会出现如下故障:

命令: USER pssbm 响应: 331 Please specify the password. 命令: PASS ************* 响应: 500 OOPS: vsftpd: refusing to run with writable root inside chroot() 错误: 已经从服务器断开 错误: 连接失败

从2.3.5之后,vsftpd增强了安全检查,如果你使用的chroot限制用户只能在指定的主目录下活动,则该用户的主目录不能再具有写权限了!如果检查发现还有写权限,就会报该错误 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
要修复这个错误:

1)可以用命令chmod a-w /home/ftpusername  将ftp限制用户的主目录去掉写权限

2)可以在vsftpd的配置文件中增加下列两项中的一项:

allow_writeable_chroot=YES
- THE END -
版权声明:
转载原创文章请注明,文章出处://kinggoo.com
原文地址:https://kinggoo.com/vsftp3-0-chrooterr.htm
发表评论?

0 条评论。

发表评论


此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据