500 OOPS: vsftpd: refusing to run with writable root inside chroot() Login failed. 421 Service not available, remote server has closed connection

该错误是由于从2.3.5之后,vsftpd增强了安全检查,如果用户被限定在了其主目录下,则该用户的主目录不能再具有写权限了!如果检查发现还有写权限,就会报该错误。

当我们限定了用户不能跳出其主目录之后,使用该用户登录FTP时往往会遇到这个错误:

500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Login failed.
421 Service not available, remote server has closed connection

 要修复这个错误,有两个办法

(一)使用命令进行删减权限,亲自测试可用

sudo chmod a-w /srv/ftp

(二)在配置文件增加如下选项

allow_writeable_chroot=YES

文章参考来源:https://blog.csdn.net/bluishglc/article/details/42399439

猜你喜欢

转载自www.cnblogs.com/Roobbin/p/11496979.html