Debian: Change default chmod
I am new with servers and I've setup a Debian on a cloud server.

I installed apache, php and then vsftpd.

I created users and set permission etc.

Now when I upload a file, its default CHMOD is 600 so you can view the file unless you manually change it to 774 or 775. 

So, I'd like to change **the default** CHMOD for **all files that I upload** to /var/www/ the **CHMOD** to **754**.

I know that `chmod -R 754 /var/www` makes all files within that directory to 774 but it doesn't change the default CHMOD so that all new files that are being uploaded, have CHMOD 774. 

My user is 'joe' for demo purpose since I'm learning, so I even tried `chown -R joe /var/www` but that didn't change the default CHMOD either.

How do I change it default CHMOD from 600 to 774? In which file should I write and what?


Thanks
Debian: Change default chmod
===

I am new with servers and I've setup a Debian on a cloud server.

I installed apache, php and then vsftpd.

I created users and set permission etc.

Now when I upload a file, its default CHMOD is 600 so you can view the file unless you manually change it to 774 or 775. 

So, I'd like to change **the default** CHMOD for **all files that I upload** to /var/www/ the **CHMOD** to **754**.

I know that `chmod -R 754 /var/www` makes all files within that directory to 774 but it doesn't change the default CHMOD so that all new files that are being uploaded, have CHMOD 774. 

My user is 'joe' for demo purpose since I'm learning, so I even tried `chown -R joe /var/www` but that didn't change the default CHMOD either.

How do I change it default CHMOD from 600 to 774? In which file should I write and what?


Thanks