LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   How to setup a CVS server in Linux Advanced Enterprise 4 (https://www.linuxquestions.org/questions/linux-enterprise-47/how-to-setup-a-cvs-server-in-linux-advanced-enterprise-4-a-485942/)

sumesh96 09-22-2006 05:05 AM

How to setup a CVS server in Linux Advanced Enterprise 4
 
Hello
how can i setup a CVS server on Linux Advanced Enterprise 4, I am very new to this platform, Can any body help me in it ..any documents in this will help me

Thanks in advance

MensaWater 09-22-2006 02:19 PM

You probably want to do Subversion rather than CVS.

Have a look at the following as it explains why and appears to go into how to get started with Subversion for RHEL.

FYI: Advance Server sounds like you mean RedHat Enterprise Linux (RHEL) AS. Rather than just saying "Advance Server" you need to make sure you say RHEL if that's what it is as it will help insure people will know which distro you're talking about.

SianZronG 02-22-2007 02:55 AM

I have exactly the same problem as the thread starter.
Newbie here with the same RHEL AS fresh from install.

CVS was already preinstalled in the installation.
Question is how to get it working.
Played around with it, set the CVSROOT to /usr/cvs_repository/

Checked if the xinetd ran the cvspserver in the etc/xinetd.d directory

The file was there and running checked the netstat -npl and found that the service was running.

ran "cvs init".

Went inside /usr/cvs_repository found that cvs created a CVSROOT directory. ok Somehow is guess the repository was created.

Tried to connnect VIA pserver but found out that the the firewall was blocking port 2401.

Opened the connection VIA iptables config file.

Now finally i can connect to the server VIA wincvs using pserver. BUT i ended up with this msg.

"cvs [login aborted]: authorization failed: server 10.110.0.21 rejected access to /usr/cvs_repository for user cvs"

Help?

Thanks.

MensaWater 02-22-2007 08:45 AM

Check to make sure xinetd is actually running (ps -ef |grep xinetd).

Don't know that it's an issue on RHAS but I just realized yesterday that FC versions 5 and 6 at least don't automatically install xinetd rpm. They create some files in /etc/xinetd.d but these aren't used if xinetd daemon isn't running.

Also do you have SELinux enabled? It causes many weird security issues. You may want to look at disabling it (which requires a reboot).

Finally see what you have in iptables (the default firewall software for RH & FC). For a quick check of whether this is your problem just run "/etc/init.d/iptables stop" to turn it off then do your test. If it works you know you need to modify your firewall rules or leave iptables turned off.

Note: From my earlier post it appears I meant to input a link but didn't. I have no clue now what link I was referring too. We aren't actively using subversion now.

SianZronG 02-22-2007 07:49 PM

Quote:

Originally Posted by jlightner
Check to make sure xinetd is actually running (ps -ef |grep xinetd).

Don't know that it's an issue on RHAS but I just realized yesterday that FC versions 5 and 6 at least don't automatically install xinetd rpm. They create some files in /etc/xinetd.d but these aren't used if xinetd daemon isn't running.

Also do you have SELinux enabled? It causes many weird security issues. You may want to look at disabling it (which requires a reboot).

Finally see what you have in iptables (the default firewall software for RH & FC). For a quick check of whether this is your problem just run "/etc/init.d/iptables stop" to turn it off then do your test. If it works you know you need to modify your firewall rules or leave iptables turned off.

Note: From my earlier post it appears I meant to input a link but didn't. I have no clue now what link I was referring too. We aren't actively using subversion now.

Thanks for the reply,
I ran ps -ef |grep xinetd. it shows that it was running. I'm sure the port is also open as i did some port scanning and showed that the 2401 for cvspserver is open.

I have also turned off the SElinux to test the cvs login.

I'm still getting the msgs below.
"cvs [login aborted]: authorization failed: server 10.110.0.21 rejected access to /usr/cvs_repository for user cvs"

Thanks.

MensaWater 02-23-2007 08:36 AM

The message suggests it is in fact getting to the server - I should have read it more carefully. It appears from the message it is CVS itself that is rejecting the connection.

Perhaps there is a config file within CVS that tells it which connections to allow and deny? It might be worthwhile to start a new thread about this so it gets the attention of a CVS expert. Since you're responding to a long dormant thread people don't see it in the "zero replies". As I noted we don't use CVS here - we were working on Subversion but even that I haven't used for a while.


All times are GMT -5. The time now is 07:36 AM.