Configure vsftpd to chown uploaded files

view story

http://askubuntu.com – I have vsftpd up and running on my Ubuntu server. This is a development server and I want to be able to FTP my code directly to the directory which Apache is serving out. As most of you know, www-data is the Apache user and the www-data user needs to have permissions to the directory that Apache is serving out. I didn't want to make www-data an FTP user as well, so what I did instead was create another user for use with FTP, and put both www-data and the new user in a new group called www. I did a chown -R www-data:www * to the directory that Apache is serving and it works mostly fine. The (HowTos)