title: FTP upload wrong permissions
body: <p>Added "youri" to the www-data group</p>
  
  <pre><code>grep youri /etc/group
  
  www-data:x:33:youri
  youri:x:1004:
  </code></pre>
  
  <p>When i upload something with FTP, the file permission is <code>-rw-------</code></p>
  
  <pre><code>ls -all
  
  total 176
  drwxr-xr-x 2 youri youri   4096 feb 25 12:38 .
  dr-xr-xr-x 3 youri youri   4096 feb 25 12:08 ..
  -rw-r--r-- 1 youri youri     17 feb 25 12:27 index.php
  -rw------- 1 youri youri 164655 feb 25 12:24 test.pdf (uploaded with FTP)
  </code></pre>
  
  <p>The file index.php is created by nano and changed the permissions by <code>sudo chown youri:youri index.php</code></p>
  
  <p>When i access my website it shows me the index.php but /test.pdf gives me an "Permission denied" error</p>