How do I setup vsftp so that I could have folder where I upload files and those files are readable by www-data?
I have created ftp folder at
/var/www/test. Made a user and added it to www-data group
useradd usertest -d /var/www/test -g www-data and chowned that folder
chown usertest:www-data /var/www/test. Then I made a subdir in
/var/www/test, chowned it by
chown www-data:www-data subdir/ and set permissions for it to
755. I am able to login into ftp, but I can't even upload a file.