I have made some vhosts which resides on my home folder, and i have given the group access to www-data user. This way the project (a web system) renders on the browser.
This is a symfony based project, so that when i run some console commands some files may be created, but unfortunately it will have my user account as the group account. How can i dynamically change the owner (group owner) of that particular directory, so that on creation of every file: its ownership is set as :
user:www-data