I have set up Apache and vsftpd on Ubuntu. I'm pretty new to Linux, but I'm trying to figure how to set ownership automatically.
When I upload files through FTP, I can't access them until I set ownership to www-data.
I need to do this each time I upload something:
sudo chown -R www-data:www-data /folder/
How to make this happen automatically?