It is very easy to lock a user to their home directory. Open up your vsftpd.conf file, which is usually located in “/etc/vsftpd/vsftpd.conf”. Either addor un-comment the following lines from your vsftpd.conf file.
chroot_local_user=YES chroot_list_enable=YES # (default follows) chroot_list_file=/etc/vsftpd/chroot_list
Once you have added the above lines, restart vsftp for the changes to take effect.
service vsftpd restart
This will now lock a user to their home directory, preventing them from being able to move outside of their home directory. To correctly use this as an FTP client, you will need to alter the home directory of the linux user to make this work as a full on useful FTP client.