need help to install CVS server(using password server) on redhat enterprise linux 4

i try to search on internet and read many manuals,tutorials about cvs but i can't setup cvs server (using password server) to run on redhat enterprise linux, does anyone know how to setup? or know which address have tutorials (step-by-step because i'm not an expert on linux) , please help me......: (
khacduystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tim_UtschigCommented:
What kind of "password server" ?
khacduystAuthor Commented:
that's pserver on CVS, example of login command to pserver :
     
     cvs -d :pserver:cvsuser@cvsServer:2401/CVSrepository login
Tim_UtschigCommented:
Have a look at cvsd:

    http://ch.tudelft.nl/~arthur/cvsd/

The README is very informative.
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

khacduystAuthor Commented:
didn't you understand my question? i just want to setup a cvs pserver on my linux OS, u gave me a link to cvsd, it another add in of cvs to help more sercurity in server, i don't want more sercurity in pserver (because i run it on lan, not internet) so what i want is how to make my CVS server work, thanks.
Tim_UtschigCommented:
You didn't mention, until now, that you specifically wanted an insecure setup.
The cvsd README shows you everything you need to know to get a secure pserver going.

Since security doesn't concern you, just create a /etc/xinetd.d/cvs containing something like this (taken from FC4 cvs package):

service cvspserver
{
        disable                 = no
        port                    = 2401
        socket_type             = stream
        protocol                = tcp
        wait                    = no
        user                    = root
        passenv                 = PATH
        server                  = /usr/bin/cvs
        env                     = HOME=/var/cvs
        server_args             = -f --allow-root=/var/cvs pserver
}

change /var/cvs in both places to the path to the directory containing your CVSROOT directory, and run "service xinetd reload".

If you don't have a repository initialized, create one:

    # allow "developers" group to modify files/dirs under the CVS root
    chown root:developers /var/cvs
    chmod 2775 root:developers /var/cvs
    # initialize it
    cvs -d /var/cvs init

That's it.  Make sure to allow port 2401 in your server's firewall.
Tim_UtschigCommented:
>    chmod 2775 root:developers /var/cvs

Oops, that should be:

    chmod 2775 /var/cvs
khacduystAuthor Commented:
still error on it.

here what i did :

i create cvs account , and cvs group and add cvs account to it.
then create /etc/xinetd.d/CVS file include

service cvspserver
{
        disable                 = no
        port                    = 2401
        socket_type             = stream
        protocol                = tcp
        wait                    = no
        user                    = root
        passenv                 = PATH
        server                  = /usr/bin/cvs
        env                     = HOME=/home/cvs
        server_args             = -f --allow-root=home/cvs pserver
}

then run commands

    chown root:cvs /home/cvs
    chmod 2775  /home/cvs
    cvs -d /home/cvs init

then restart computer, after retart i enter following command

   cvs -d :pserver:cvs@127.0.0.1:2401/home/cvs login

enter password of cvs account and i get following error :

cvs [login aborted]: unrecognized auth response from 127.0.0.1: cvs [pserver aborted]: /home/cvs: no such repository

then i check directory home/cvs/ and see CVSROOT into (that mean /home/cvs already init), in some resource on internet they show me make passwd file in CVSROOT directory, did you forget? or we don't need that file? i check config file in /home/cvs/CVSROOT and see SystemAuth=no, what must i do to make it run, thanks


 
khacduystAuthor Commented:
i using nmap command to check port 2401 and it say port 2401 already use by cvspserver
Tim_UtschigCommented:
>         server_args             = -f --allow-root=home/cvs pserver

You're missing a slash before "home"
khacduystAuthor Commented:
i fix it, but the error message is the same : (
Tim_UtschigCommented:
> i fix it, but the error message is the same : (

service xinetd reload
khacduystAuthor Commented:
i restart my computer but it still say that error : (
Tim_UtschigCommented:
> in some resource on internet they show me make passwd file in CVSROOT directory, did you forget?

No.

> i check config file in /home/cvs/CVSROOT and see SystemAuth=no

Commented out though, right?

You'd get an error like this if there was an authorization problem:

   cvs login: authorization failed: server 127.0.0.1 rejected access to /home/cvs for user cvs

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
khacduystAuthor Commented:
ohh my god, i think this is my mistake  because i did alot of setting in my OS, then i go install new OS (using vitual machiness so i just replace my vitual disk) and do like what u say and it worked now, thanks so muck, you save my life ^_^
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.