I have a server setup with Ubuntu, Apache2 and VSFTPD. We virtual host several sites on this machine. Typically, I use the same process to set up the new sites, but the default permissions for some are different than the others.
For some sites, I can upload new files and directories through FTP and they receive 644 and 755 permissions respectively. Just how I want them by default.
For other sites, they receive 0 or 600 as the default new file permission. I have to manually change each file to 644. This is slow and a pain to do.
I've checked the permissions and the ownership and it all seems to be the same. What am I missing?