From: David Neary (dneary at domain wanadoo.fr)
Date: Mon 30 Sep 2002 - 17:47:02 IST
Justin MacCarthy wrote:
> 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
> [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
> [cvsdev1 at domain gotodengo project1]$ cvs import -m "import Test.java"
> project1 test
> Cannot access /home/cvs/repository/CVSROOT
> Permission denied
> Here is my service file
> 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?
The pserver info helps - you might get more of an idea if you try
it locally first (that will eliminate some possibilities) - set
your cvsroot to just /home/cvs/repository - you could also check
that cvsdev1 has execute access on /home/cvs (not always a given)
- anyway, if it works as cvsdev1 you know it's not a permissions
issue, it's a cvs pserver issue (probably depending on the user
that the pserver runs as). On that point, why not run your
pserver as cvs and be done with it?
crying baby - stopping now.
-- David Neary, Marseille, France E-Mail: bolsh at domain gimp.org
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:19:09 GMT