Subsystem sftp internal-sftpAdd following lines at the end:
Match group sftponly # or Match user someuser
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
Subsystem sftp internal-sftpMatch group sftponly # or Match user someuser
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
# ftp stream tcp nowait root /usr/sbin/tcpd vsftpdlocal_enable=YES
write_enable=YESchroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
chroot_local_user=YESusername /path/to/chrooted/dir/> usermod -d /path/to/chrooted/dir/ username/bin/false/bin/false to /etc/shells