VSFTPD禁锢目录后不能登录的问题
当我们在使用VSFTPD服务的时候,在本地用户登录的模式下,增加选项chroot_local_user=YES,禁锢目录后,在客户端登录的是否发现:
[root@yanzixuan ~]# ftp 10.0.0.138
Connected to 10.0.0.139 (10.0.0.139).
220 (vsFTPd 3.0.2)
Name (10.0.0.139:root): azkaban
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Login failed.
421 Service not available, remote server has closed connection
不能登录了,多次尝试,用户名,密码都正确,但是就是登录不进去
这时还需要在服务器的配置文件里边添加一个选项allow_writeable_chroot=YES,这样重启以后就可以正常登录了