vsftpd access to /srv/www/domain.com/somedir
-1
votes
1
answer
426
views
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](https://unix.stackexchange.com/a/94673/68860) :
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
Asked by MikeiLL
(247 rep)
Aug 25, 2018, 05:21 PM
Last activity: Aug 25, 2018, 05:30 PM
Last activity: Aug 25, 2018, 05:30 PM