title: Debian/Linux Group permissions are not working as they are supposed to
body: <p>I'm working on BOINC project.</p>
  <p>I have two users: boincadm and www-data (for apache).
  Both belong to group boinc</p>
  <pre><code>www-data : boinc www-data boincadm
  boincadm : boinc adm dialout fax cdrom floppy tape audio dip www-data video plugdev netdev bluetooth lpadmin fuse scanner sambashare subversion
  </code></pre>
  <p>I have a boinc project created in /home/boincadm/projects/myproject/
  All files and folders there are owned by boincadm : boinc and have rwxrwx--- permissions.</p>
  <p>The problem is that www-data user can not access to files, which causes multiple errors like:</p>
  <blockquote>
  <p>Warning: require_once(../inc/db.inc): failed to open stream: Permission denied in    /home/boincadm/projects/myproject/html/user/index.php</p>
  <p>Fatal error: require_once(): Failed opening required '../inc/db.inc'  (include_path='.:/usr/share/php:/usr/share/pear') in  /home/boincadm/projects/myproject/html/user/index.php</p>
  </blockquote>
  <p>or just</p>
  <blockquote>
  <p>Can't access the file XXX</p>
  </blockquote>
  <p>in logs..</p>
  <p>IF I change grant rwx to &quot;others&quot;  (777) it works..</p>
  <p>My question is, why don't the group permissions work as I expect? Any ideas?</p>
  <p>I'm not an expert in linux, thus I could miss something.</p>