Discussion:
How to configure a CVS pserver on OSS
(too old to reply)
Bernard P
2004-02-24 16:12:59 UTC
Permalink
Hi,
I am currently trying to install a CVS pserver on OSS (G06.21).
So far, I have :
- created a new user SUPER.CVS
- downloaded/uncompressed/tar x the CVS tarball from iTug
- created a CVS repository (CVSROOT=/home/cvs;export CVSROOT)
- cd $CVSROOT; cvs init
- checked that cvs was working locally with cvs import on a dummy project
- installed WinCVS under iTP webserver (seems to work)
- modified /etc/inetd.conf to add :
cvspserver stream tcp nowait super.cvs
/usr/local/bin/cvs --allow-root=/home/cvs pserver
- modified /etc/services to add :
cvspserver 2401/tcp # CVS server
- restarted inetd

So far, from a windows or linux client, it looks like I get the connection
to the CVS pserver, but then I have an error (tested using WinCVS):

cvs [init aborted]: Server configuration missing --allow-root in
inetd.conf

What did I do wrong ? Typo ? Security issue ? I have no idea.
Any help is welcome!

Cheers,
Bernard Pinon
Joachim Schmitz
2004-02-25 16:47:31 UTC
Permalink
Hi Bernard
Post by Bernard P
Hi,
I am currently trying to install a CVS pserver on OSS (G06.21).
- created a new user SUPER.CVS
- downloaded/uncompressed/tar x the CVS tarball from iTug
- created a CVS repository (CVSROOT=/home/cvs;export CVSROOT)
- cd $CVSROOT; cvs init
- checked that cvs was working locally with cvs import on a dummy project
- installed WinCVS under iTP webserver (seems to work)
cvspserver stream tcp nowait super.cvs
/usr/local/bin/cvs --allow-root=/home/cvs pserver
cvspserver 2401/tcp # CVS server
- restarted inetd
So far, from a windows or linux client, it looks like I get the connection
cvs [init aborted]: Server configuration missing --allow-root in
inetd.conf
What did I do wrong ? Typo ? Security issue ? I have no idea.
Any help is welcome!
Untested, but I guess your inetd.conf should read:
cvspserver stream tcp nowait super.cvs /usr/local/bin/cvs
cvs --allow-root=/home/cvs pserver

I.e. the program to be started needs to be listed twice if you want it
started with extra arguments (the second time it doesn't need to be a fully
qualified pathname).
This maps to execv() where you have to give both, the program to start (as
an absolute pathname) and the complete argv (including argv[0], the program
name).
Post by Bernard P
Cheers,
Bernard Pinon
Bye, Jojo
Bernard P
2004-03-02 09:38:56 UTC
Permalink
Post by Joachim Schmitz
cvspserver stream tcp nowait super.cvs /usr/local/bin/cvs
cvs --allow-root=/home/cvs pserver
I.e. the program to be started needs to be listed twice if you want it
started with extra arguments (the second time it doesn't need to be a fully
qualified pathname).
This maps to execv() where you have to give both, the program to start (as
an absolute pathname) and the complete argv (including argv[0], the program
name).
Tested. Works. THANK YOU!
Bernard

Loading...