[ILUG] repost with more info ...CVS permissions question

From: Justin MacCarthy (macarthy at domain iol.ie)
Date: Mon 30 Sep 2002 - 17:38:03 IST


Hi all,

I'm setting up a cvs server. I've created a user "cvs", and created a
repository in /home/cvs/repository ,and done a cvs init.

 [cvs at domain gotodengo cvs]$ ls -la
 drwx--S--- 3 cvs cvs 4096 Sep 30 15:16 repository

 [cvs at domain gotodengo repository]$ ls -la
 total 12
 drwx--S--- 3 cvs cvs 4096 Sep 30 15:16 .
 drwx------ 5 cvs cvs 4096 Sep 30 15:15 ..
 drwxrwsr-x 3 cvs cvs 4096 Sep 30 15:16 CVSROOT
 [cvs at domain gotodengo repository] chmod 770 /home/cvs/repository
 [cvs at domain gotodengo repository] chmod g+s /home/cvs/repository

 I've also created 2 users cvsdev1 and cvsdev2 and added them to the cvs
 group

 [cvsdev1 at domain gotodengo project1]$ groups
 cvsdev1 cvs

 I can login to cvs fine but when a try to import a project, I'm getting a
 permissions issue

 [cvsdev1 at domain gotodengo cvsdev1]$ cd project1/
 [cvsdev1 at domain gotodengo project1]$ ls
 test.java
 [cvsdev1 at domain gotodengo project1]$ cvs import -m "import Test.java"
 project1 test
 test_1.0
 Cannot access /home/cvs/repository/CVSROOT
 Permission denied

Here is my service file

service cvspserver
{

        disable = no
        socket_type = stream
        protocol = tcp
        user = root
        wait = no
        server = /usr/bin/cvs
        server_args = -f --allow-root=/home/cvs/repository pserver
        log_on_success +=USERID
        log_on_failure +=USERID

}

Also the profile file has been updated to set a CVSROOT path and export.

[cvsdev1 at domain gotodengo project1]$ echo $CVSROOT
:pserver:cvsdev1 at domain localhost:/home/cvs/repository

Can anyone see where I've gone wrong?

Thanks Justin



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:19:09 GMT