I need to be able to add a virtual users to vsftpd that only have access to a sub folder. The reason why I want to use virtual users is I only want to have 1 real user on the server.
The FTP structure is:
www
website_name1
sub_folder1
website_name2
sub_folder2
sub_folder3
website_name3
website_name4
The main account has access to the www folder and all sub directories and I want to add a virtual user that can have access to the sub_folder1 and only sub_folder1
Also to avoid some confusion I would also require another user to access sub_folder3 and only sub_folder3. My point being I need to be able to choose which folder and sub folders on a user by user basis.
I have found ways to to add users to see the whole strucutre or setup user named folders both of which have no use to me.
I found a similar question posted here:
How to setup VSFTPD for multiple users including adding specific directories
but it recommends proftpd
which I though was general less secure.
Or have I missed the point here?