I am not a sysadmin, so my knowledge is limited in this topic.
We have an apache with some virtualhosts. For some reason, the group of the files and directories is a gitusers, because we are using hooks on commit sometimes. Sometimes not, but I would like keep this.
Owner of files is www-data.
I've created a new ftp user (a real linux user), called: printftp without shell.
I've added this printftp user to the gitusers group.
Let's say, the directory of our http project is /var/www/print.example.com/www/
This is the home directory for printftp.
My problem is, all the new files created by this user will be: printftp:printftp
Is it possible to focrce the proftpd to inherit the owner and group from the /var/www/print.example.com/www/?
So all new files created by anyone should be: www-data:gitusers
And I also want to change 664 for files, and 775 for directories.
Thanks