info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple repositories on CVS on Linux


From: Mark D. Baushke
Subject: Re: multiple repositories on CVS on Linux
Date: Wed, 18 May 2005 23:58:02 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ankush grover <address@hidden> writes:

> This is my first post on CVS mailing list.I have 2 problems.

Well, given you are planning to use :pserver: which is not really
secure, you have three problems...

> a) I have configured CVS on Fedora Core 3.I have 3 development teams
> and I want to configure multiple repositories for them.The
> configuration for CVS is .
> 
> under /etc/services 
> 
> cvspserver          2401/tcp
> cvspserver          2401/udp
> 
> under /etc/xinetd.d/cvspserver
> 
> service cvspserver
> {
> 
> disable       = no
> Port = 2401
> socket_type = stream
> protocol = tcp
> wait = no
> user = root
> passenv = PATH
> server = /usr/bin/cvs
> server_args = --allow-root=/opt/cvs -f pserver
> env = HOME=/opt/cvs
> log = /var/log/cvslog
> } 
> 
> With this configuration the users are able to login into the CVS and
> do the things.
> 
> I tried to add the path for the other repository also in the cvspserver file
> 
> service cvspserver
> {
> 
> disable       = no
> Port = 2401
> socket_type = stream
> protocol = tcp
> wait = no
> user = root
> passenv = PATH
> server = /usr/bin/cvs
> server_args = --allow-root=/opt/cvs:/opt/cvs1 -f pserver

server_args = --allow-root=/opt/cvs --allow-root=/opt/cvs1 -f pserver

> env = HOME=/opt/cvs:/opt/cvs1
> log = /var/log/cvslog
> } 
> 
> After making these changes I restarted xinetd service and then from
> the WinCvs users  tried to access the repository the users were not
> able to login into the repository.

Correct. Read https://ccvs.cvshome.org/fom/cache/124.html

> Can anyone tell me how to make mutliple repositories on Linux for 
> cvs.We are using WinCvs on Windows to access the repository.

To checkout the two repositories you mentioned previously from the
host 'your-server.dom.ain', you might use these commands:

For /bin/csh or /bin/tcsh shells:

   setenv CVS_RSH ssh

for bourne shells (/bin/bash, /bin/ksh, /bin/zsh, /bin/sh, et al)

   CVS_RSH=ssh; export CVS_RSH

Then running a command like this:

  cvs -d :ext:your-server.dom.ain:/opt/cvs checkout -d origcvs .

  cvs -d :ext:your-server.dom.ain:/opt/cvs1 checkout -d cvs1 .

will yeild two directories (origcvs and cvs1) with the contents of your
two repositories... Adjust to do a checkout of the modules instead of
the entire repository as you wish.

> b) As pserver is not the ideal communication protocol we want to
> switch to some other protocol like ssh or ext .

Good choice. The :ext: transport can use eithe 'rsh' or 'ssh' and we
normally recommend 'ssh' (or 'putty' on Windows boxes). You will also
want to read about 'ssh-agent' (or Pagent on Windows boxes) to
potentially hold your credentials.

> Can anyone tell me how to configure cvs with ssh so that we can access
> through windows with SSH protocol.

If you can ssh into the box, you can use the environment variable on
your client called CVS_RSH=ssh (or maybe CVS_RSH=putty for a windows
box)

> Is it possible to create and access multiple repositories with SSH?

Yes. That is the safer method.

> Any tutorial or step by step configuration.

google is your friend. Use it. You could search the info-cvs mailing list
with 

     [site:lists.gnu.org info-cvs your search terms here]

example: [site:lists.gnu.org info-cvs ssh ext howto]

  
http://www.google.com/search?hl=en&lr=&client=firefox&rls=org.mozilla%3Aen-US%3Aunofficial&q=site%3Agnu.org+info-cvs+ssh+ext+howto&btnG=Search
  

or the cvshome.org site using

     [site:cvshome.org your search terms here]

        Good luck,
        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFCjDj63x41pRYZE/gRAsirAKCY8lUvswYvVlyurxWEwbn7XBXqRgCbBftq
1vdlYyLpAwyFOVnsI4bGsPc=
=hxgj
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]