Chroot jail not working with VSFTPD
Solution 1:
I had the same problem. No chroot, you could see all the files. When I allow chroot I can't log in my ftp server.
How did I resolve it? Appended this to configuration file:
allow_writeable_chroot=YES
http://www.benscobie.com/fixing-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot/
Solution 2:
It is an old thread I know. Had the same problem using debian wheezy on a Raspberry Pi and found out that everytime during login automatically the sftp-server
became active (checked via ps -ef
).
Disabled the server in sshd_config
by changing the command into:
Subsystem sftp /bin/false
and got correct logins via the vsftp
server using TLS. Chroot jail worked correct now.
Solution 3:
Does root own the directories which any given user is 'chrooted' to? I believe this is a requirement in the newest VSFTPD versions.
If you can't change ownership of these folders to root, then try out proftpd.