To lock users in home dir:
Touch vsftpd.chroot_list ; to create file of users that are allowed to ftp outside their home dirs add root to this file
Cd /etc/vsftpd
vi vsftpd.conf
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
chroot_local_user=YES
# (default follows)
chroot_list_file=/etc/vsftpd
service vsftpd restart
To lock users in home dir:
Touch vsftpd.chroot_list ; to create file of users that are allowed to ftp outside their home dirs add root to this file