Permission denied for cvs server via ssh
Posted
by
NovumCoder
on Stack Overflow
See other posts from Stack Overflow
or by NovumCoder
Published on 2010-12-28T15:49:25Z
Indexed on
2010/12/28
15:54 UTC
Read the original article
Hit count: 664
permissions
|cvs
I cant create a new project by importing a java project via eclipse onto my cvs server via internet.
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.
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.
the contect of authorized_keys2 is as follows:
no-port-forwarding,no-X11-forwarding,command="/usr/bin/cvs server" ssh-rsa [public_key_content] rsa-key
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.
But when importing my project by using Team->Share Project. I get the error:
The server reported an error: Permission denied
projectname: cvs server: cannot open /priv/cvs/CVSROOT/config: Permission denied
projectname: Cannot access /priv/cvs/CVSROOT
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.
Why do i get Permission denied?
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?
© Stack Overflow or respective owner