I'm aware this question has been asked a lot in the past, but my problem seems to be a bit different. I'm using
vsftpd on my CentOS 7 server and I have specified
/etc/vsftpd/vsftpd.conf. The FTP user is called
user, and their home directory is
/home/user. When I try to log in, I get this:
500 OOPS: chroot Login failed. 421 Service not available, remote server has closed connection
I've been searching for a solution, but people seem to only get
refusing to run with writable root inside chroot(), not this. I have tried two things:
1.Remove all write permissions on
[user@vps226220 ~]$ ls -al /home | grep user dr-x------. 4 user user 4096 Dec 12 00:56 user
sudo systemctl restart vsftpd.
In both cases nothing changed, I still get the same error. Note that if I set
chroot_local_user=NO, it works fine, but of course this isn't an acceptable configuration for me.
vsftpd version is 3.0.2, so I believe it should support
How can I solve this issue?