When I set chroot_local_user to YES in the vsftpd configuration, I get this error in my ftp client:

220: (vsFTPd 2.3.5)
Connected to
234: Proceed with negotiation.
Cmd: USER ftpaccess
331: Please specify the password.
Cmd: PASS xxxxxxxx
Could not read reply from control connection: Unknown error: 0.

And this in the /var/log/vsftpd.log file:

Wed May 16 04:51:42 2012 [pid 2] CONNECT: Client ""
Wed May 16 04:51:43 2012 [pid 1] [ftpaccess] OK LOGIN: Client ""

If I remove write access to my home directory, I do not receive the error and am able to connect. How can I enable chroot_local_user with write access to my web directory?

  • This could be related to using TLS with chroots, try connecting without TLS to rule out or confirm this. – mgorven May 16 '12 at 20:37

I see the same issue here and, indeed, it seems to be related to TLS and chroot... I used to have this working on older instances of vsftpd (last checked 2.0.5).. this fails for me with 3.0.2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.