Thanks for opinions. I followed every step you gave (I restarted from the
beginning), but still "netstat -l" doesn't show the port 2401.
it seems cvs server is not started.

The format of "passwd" I got from cvs manual. it is given as
following.......

(http://www.cvshome.org/docs/manual/cvs_2.html#SEC23)

 Here is an example `passwd' file with five entries:

anonymous:
bach:ULtgRLXo7NRxs
spwang:1sOp854gDF3DY
melissa:tGX1fS8sun6rY:pubcvs
qproj:XR4EZcEs0szik:pubcvs

(The passwords are encrypted according to the standard Unix crypt()
function, so it is possible to paste in passwords directly from regular
Unix
`/etc/passwd' files.).....................


I also issued the command  "chown -R cvs:cvs /usr/local/cvsroot" gave te
permissions for "cvs" user.

but still no result!

How can I manually run cvs server (not as a xinetd service)?


What else can I do to make cvs run?






                                                                                       
                                                
                      Gordon Messmer                                                   
                                                
                      <[EMAIL PROTECTED]        To:       [EMAIL PROTECTED]        
                                                
                      m>                       cc:                                     
                                                
                      Sent by:                 Subject:  Re: CVS Config problem - Need 
a help.....                                     
                      redhat-list-admin                                                
                                                
                      @redhat.com                                                      
                                                
                                                                                       
                                                
                                                                                       
                                                
                      08/26/02 01:19 AM                                                
                                                
                      Please respond to                                                
                                                
                      redhat-list                                                      
                                                
                                                                                       
                                                
                                                                                       
                                                




On Sun, 2002-08-25 at 19:47, Sajeewa Chandrasekera wrote:
>
> Yes Gordon, /usr/local/bin/cvs is there ! (I think I have copied it
there)
>
> And also I tried putting /usr/bin/cvs (this is also there), but it still
> doesn't work.

Use /usr/bin/cvs since it's there.

> I tried to config cvs under Redhat 7.1, but failed. Following the steps I
> followed.
>
> 1. In /etc/profile I put
>
> CVSROOT=/usr/local/cvsroot
> export CVSROOT

Since you added a cvs user, 'chown -R cvs:cvs /usr/local/cvsroot'.
Local users that need CVS access can be added to the "cvs" group.

> 4. under "/etc/xinitd.d" I created a file called "cvspserver" and put
these
> lines
> service cvspserver
> {
>    disable     = no
>    port        = 2401
>    socket_type = stream
>    protocol    = tcp
>    wait        = no
>    user        = root
>    passenv     =
>    server      = /usr/local/bin/cvs
>    server_args = -f --allow-root=/usr/local/cvsroot pserver
> }

Run this as "user = cvs" rather than as root.  There should be no need
for root permissions if the cvsroot is owned by the cvs user.

Eliminate the passenv, as an empty environment may cause problems (??).

Take out the "port" spec, it's not necessary.

> 5. put a "passwd" file under (a copy of /etc/shadow)
> /usr/local/cvsroot/CVSROOT

You probably shouldn't do that.  If you want to use system
authentication for your users, don't do pserver.  Set them up with SSH
access, authenticated with keys, and have them tunnel cvs over that.

If you're doing pserver, keep the password file separate.  The shadow
file is not the right format anyway.  See this page for information on
setting up a password file:
http://www.taursys.com/howto/cvs/

> 6. restarted the "xinetd" service issuing the command
> service xinetd restart

Afterward, look at /var/log/messages to see if xinetd can tell you
what's wrong with the cvspserver setup.

> 7. listed ports using nmap tool
> nmap localhost

That's more work than you need.  "netstat" is faster:
netstat -l





--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list






-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to