- sudo apt-get update
- sudo apt-get install vsftpd
- sudo vim /etc/vsftpd.confuncomment write_enable=YES
uncomment chroot_local_user=YESAdd at last in file
user_sub_token=$USERallow_writeable_chroot=YES
- sudo mkdir directory-path
- sudo adduser –home=directory-path username
- sudo chmod -R 0777 directory-path
- sudo chown nobody:nogroup directory-path
- sudo chown username:username directory-path
- sudo chmod a-w directory-path
- sudo service vsftpd restart