I'm trying to set up vsftpd to allow people to download certain files from my server. The files in question are in various directories on my server, along with directories I dont wish to share. I figured the best way to acheive this would be to:
1) Set up a single ftp group.
2) Create home directory for this ftp group.
3) in this ftp home directory, create a few symlinks to the specific directories I wish to share.
4) Add ftp users to this group, and ensure they are restricted to the home directory.
I have had mixed success with this. When I first tried it, it kind of worked OK - the user started off in the home directory (/home/ftp-user). They were able to browse the symlinked directories. Unfortunatly they were also able to change back to the root directory of the server, and browse other directories.
After a considerable amount of playing around with vsftpd.conf (In the end I added "chroot_local_user=YES"), I was able to restrict the user to the home directory - but this worked too well. They are now unable to switch to the symlinked directories.
So - how do I acheive what I want? Allow the user to switch to the symlinked directories within /home/ftp-user, without being able to brows the server root?
Thanks.