title: Linux set permissions to folder (ftp and Apache2)
body: <p>I set up a folder (/srv/www/). In this folder, all Apache virtual hosts are located.
  For example;</p>
  
  <ul>
  <li>/srv/www/domain.com</li>
  <li>/srv/www/domain2.com</li>
  </ul>
  
  <p>I created a group ftp-users and executed the following commands:</p>
  
  <ol>
  <li>groupadd ftp-users</li>
  <li>chmod 755 /srv/www</li>
  <li>chown root:ftp-users /srv/www</li>
  </ol>
  
  <p>Whenever I upload a file to /srv/www/domain.com/public_html/ it gets CHMOD 600 by default, this has to be 755.</p>
  
  <p>How do I do this?</p>
  
  <p>Using Debian Squeeze, Apache and vsFTPd.</p>