On Ubuntu 16 I am trying to give FTP access to a particular server directory which has files owned by web:www-data to an FTP user.
I have changed the users home directory:
usermod --home /srv/www/example.com/current/ username
Confirmed:
grep username /etc/passwd
username:x:1002:1001:User Company,,,:/srv/www/example.com/current/:/bin/bash
When I switch users the home directory seems to be the same as the admin directory:
sudo -su username
echo $HOME
/home/admin
And when I connect via FTP
ftp -p xxx.xxx.xxx.xxx
Name: username
Password: password
It takes me to /home/username/ftp