I followed this answer for setting default file permissions in my web root folder.
I am trying to set all files/dirs to 775 by default. This works fine when creating files within linux and also when creating files directly on the web root through the samba share but it doesn't seem to work when files are created on the windows disk and ftp'd over.
When I do this the file permissions are set as read/write owner only [-rw-------] so apache cant even read them.
My setup is that I'm running Ubuntu in a virtualbox with a Windows 7 host. I have a local directory on the host where I store the files and I ftp them to the Ubuntu machine using netbeans for testing.
When I ftp to the VM I am connecting as an authenticated user (the same one that owns the web root and everything in it - who is also in the same group as apache and this is the group all the files are part of).
How can ensure that files are created with 775 permissions when ftping? (I am using vsftpd)