FTPS. How to upload to a Home Folder only?

Solution 1:

You should be able to change the home directory back and reverse the first two lines with:

sudo usermod -d /home/ftpuser ftpuser
sudo chown www-data:www-data /var/www

usermod -d sets the home folder for a user.

When configuring vsftpd you may also need to edit the /etc/vsftpd.conf file.

Change the line:

local_root=/fake/path

To:

local_root=/home/$USER/ftp/files

This should change the root directory to the path created in your example.