Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

CVS service on Linux

CVS service on Linux

CVS service on Linux


I'm trying to get CVS up and running on a Linux box (redhat). I've managed to check out / commit from that box with no problems. However, when I try and access the repository from another machine (Windows) I get:

cvs.exe [checkout aborted]: connect to cvshost:2401 failed: No connection could be made because the target machine actively refused it.

I think this is because the CVS service isn't running on cvshost (but I could be wrong). So I tried this on the Linux box:

$ chkconfig cvs on

but that gives:

error reading information on service cvs: No such file or directory

I'm a bit of a Linux noob so I don't really know how to rectify this. I guess I need to somehow make the CVS service available but I don't know how.

I've already added the appropriate line to /etc/inetd.conf:

cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/usr3/CVSROOT pserver

and rebooted (just in case). Anyone got any thoughts on this?


RE: CVS service on Linux

I had a similar problem.  From what I understand it's because the user logging in can't authenticate.  I can't give you a step-by-step process, as I don't remember everything, but I can give you generality:

1) You need to make a user an admin to access the admin functions.  Edit a file called .admin (I think) and put your user name there.
2) You need to create a user in the OS that has access to the directories.  useradd will do this, and then you need to have this user have appropriate access rights to the repository.
3) Now you need to map a CVS user to this OS user.  cvs admin useradd... something...  Look in the manual.  You don't want a "real" user, you want one that points to a user.  There are some command flags that let you specify the CVS username, and the local user that it maps to.  That's what you want.

Once you've done that you should be able to log in with that user from a remote machine.

Ultimately what it comes down to is that on the host machine you are logged in as someone who can access it, but in order for someone to access it in a way other than the :local: way CVS needs to know of the user explicitly.  Doing the above accomplishes that.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close