title: Permission denied for cvs server via ssh
body: <p>I cant create a new project by importing a java project via eclipse onto my cvs server via internet.</p>
  
  <p>I created a directory as root called /priv/cvs/.
  Then i called "cvs -d /priv/cvs/ init".
  I created a user named cvs and a groups called cvs.
  The repository is owned by cvs and in group cvs.</p>
  
  <p>Then i created a user "ben" and his only group is cvs.
  I "chrooted" the user "ben" accessing only the cvs functionality by not allowing to access the server via ssh with password, only by using a public key which is added in his home directory on the server in file authorized_keys2.</p>
  
  <p>the contect of authorized_keys2 is as follows:</p>
  
  <pre><code>no-port-forwarding,no-X11-forwarding,command="/usr/bin/cvs server" ssh-rsa [public_key_content] rsa-key
  </code></pre>
  
  <p>Connecting to the server works pretty fine. Eclipse asks for the passphrase for the private key to connect to the server. Authentication works and eclipse is able to run cvs commands.</p>
  
  <p>But when importing my project by using Team->Share Project. I get the error:</p>
  
  <pre><code>The server reported an error: Permission denied
  projectname: cvs server: cannot open /priv/cvs/CVSROOT/config: Permission denied
  projectname: Cannot access /priv/cvs/CVSROOT
  </code></pre>
  
  <p>The access right for the cvs root (/priv/cvs/) is set to 770. Which means that the owner, which is cvs and the group participants of the group cvs are allowed to read and write.</p>
  
  <p>Why do i get Permission denied?</p>
  
  <p>When i set the folder to 777, which means read/write to ALL, then it works. But i dont want that. I only want cvs users read/write to this folder?
  Is there something i misunderstood about access rules?</p>
  
  <p>One thing i forgot:
  All files and directory in /priv/cvs are chmodded to cvs:cvs and all folders in /priv/cvs/ have been chmodded to 775 (read by all, write by owner/group).</p>