CVS on Centos 5

Michael E Brown Michael_E_Brown at dell.com
Thu Apr 26 09:38:59 CDT 2007


On Thu, Apr 26, 2007 at 03:03:59PM +0200, Gilberto Rodriguez wrote:
> (I hope you do not mind posting this here)
> 
> Hello all,
> 
> just installed CentOS 5 (x86 64) and trying to set up a cvs repository. I
> installed cvs-1.11.22-5.el5. Local, rsh and ssh access methods work fine.
> But having trouble with pserver.

Why would you use pserver if you have ssh working?

> xinet.d is properly configured (I hope) xinet.d/cvs follows
> 
> service cvspserver
> {
>         disable                 = No 
>         port                    = 2401
>         socket_type             = stream
>         protocol                = tcp
>         wait                    = no
>         user                    = root 
>         passenv                 = PATH
>         server                  = /usr/bin/cvs
>         env                     = HOME=/projects/.cvsroot
>         server_args             = -f --allow-root=/projects/.cvsroot pserver
> #       bind                    = 127.0.0.1
> }
> 
> 
> 
> Loggin in works fine
> 
> $ cvs -d :pserver:localhost:2401/projects/.cvsroot login
> Logging in to :pserver:esteban at localhost:2401/projects/.cvsroot
> CVS password: 

Yeah, because login doesnt really do anything.

> But when I want to check out a project...
> 
> $ cvs -d :pserver:localhost:2401/projects/.cvsroot co CVSROOT
> cvs checkout: cannot open /remotehome/esteban/.cvsignore: Permission denied
> cvs checkout: failed to create lock directory for
> `/projects/.cvsroot/CVSROOT' (/projects/.cvsroot/CVSROOT/#cvs.history.lock):
> Permission denied
> cvs checkout: failed to obtain history lock in repository
> `/projects/.cvsroot'
> cvs checkout: Updating CVSROOT
> cvs checkout: failed to create lock directory for
> `/projects/.cvsroot/CVSROOT' (/projects/.cvsroot/CVSROOT/#cvs.lock):
> Permission denied
> cvs checkout: failed to obtain dir lock in repository
> `/projects/.cvsroot/CVSROOT'
> cvs [checkout aborted]: read lock failed - giving up

set LockDir=/var/lock/cvs in CVSROOT/config. Then mkdir /var/lock/cvs
and chgrp cvs /var/lock/cvs and chmod g+s /var/lock/cvs.

> I have seen that the pserver daemon takes takes my identity (esteban). I am
> sure I can read/write these files when I am in bash. But I can not understan
> why I get the errors.

Pserver runs under inetd accound and doesnt have permissions to write to
the lock directories.
--
Michael



More information about the Linux-PowerEdge mailing list