I've installed vsftpd following this tutorial: https://help.ubuntu.com/6.06/ubuntu/serverguide/C/ftp-server.html
The setup went well and I'm able to connect using my local users credentials as expected. However I have a problem with directory listing and permissions ..
If I do not restrict local users to their home directory with chroot_local_user, they are able to browse the whole file system down to the deepest /dev folder.
On the other hand when I try to enable the chroot_local_user directive, the users are indeed restricted to their home directory, but the initial remote directory is the root partition. Listing any directory raise an authorization error except for the user's home directory.
I've checked vsftpd's configs and nothing seems to do what I want ..
Another thing I don't understand is why on earth the package installation is creating a /home/ftp directory if it doesn't use it.
Edit: I've noticed vsftpd is running as root.. is that the expected behavior ??