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.

Once you have added the above lines, restart vsftp for the changes to take effect.

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.