VSFTPD chroot_local_user problem - an unexpected TLS packet was received

Posted June 17, 2017 5.8k views
Linux BasicsUbuntuUbuntu 16.04

If I comment out #chrootlocaluser=YES then I can connect over Filezilla just fine however the output displays the entire path


What I am trying to get it to do is when user ‘mmg’ logs in display only the “root” folder that lives inside “mmg”

I have the following option set:


and permissions on that folder are as follows:

root@server:~# ls -la /media/ftproot/mmg/root/
total 16
drwxr-xr-x 2 mmg    mmg     4096 Jun 17 22:25 .
dr-xr-xr-x 3 nobody nogroup 4096 Jun 17 21:59 ..
-rw-r--r-- 1 root   root       9 Jun 17 22:02 test.txt
-rw------- 1 mmg    mmg        9 Jun 17 22:20 upload.txt

Any help is appreciated.

1 comment
  • if using chrootlocaluser=YES without ‘allowwriteablechroot=YES’ at the same time, filezilla will disconnect with error: gnutls error -15: an unexpected tls packet was received.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

It’s cool, I fixed it.