I am starting to use Amazon EC2.
A couple of days ago I managed to setup vsftpd and created some users, each of who was linked to a folder with its name... eg: /home/user1, /home/user2
It works great, but now I want my users name not linked to a folder with its name.
E.g. for user1 I link to /var/www/stuff
The problem is that my vsftpd.conf is like this:
passwd_chroot_enable=yes listen=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 nopriv_user=vsftpd virtual_use_local_privs=YES guest_enable=YES user_sub_token=$USER local_root=/path/to/$USER chroot_local_user=YES allow_writeable_chroot=YES hide_ids=YES guest_username=vsftpd pasv_max_port=41000 pasv_min_port=40000 port_enable=YES pasv_enable=YES pasv_address=XX.XX.XX.XX
local_root is set according to the user_sub_token, which is its user name.