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

Reply via email to