SFTP: How to auto-inherit parent group/owner/permissions?

#1
When users upload files (e.g. plugin/theme patches) via SFTP (filezilla), the file owner/group gets set to user:user and the permissions are taken from Windows 10. This is causing a ton of issues with wordpress.

How can I set up my OLS server (Azure > Ubuntu via the official Litespeed cloud image), so that these owner/group is inherited from the parent folder (www-data:www-data) and the permissions are 775/644, regardless of who/how theyre uploaded?

Requiring my webdevs to connect via SSH and chmod/chown after every time they want to upload a file is unfeasable.
 
Top