khacduyst
asked on
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......: (
What kind of "password server" ?
ASKER
that's pserver on CVS, example of login command to pserver :
cvs -d :pserver:cvsuser@cvsServer :2401/CVSr epository login
cvs -d :pserver:cvsuser@cvsServer
ASKER
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.
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.
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.
> chmod 2775 root:developers /var/cvs
Oops, that should be:
chmod 2775 /var/cvs
Oops, that should be:
chmod 2775 /var/cvs
ASKER
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:240 1/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
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:240
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
ASKER
i using nmap command to check port 2401 and it say port 2401 already use by cvspserver
> server_args = -f --allow-root=home/cvs pserver
You're missing a slash before "home"
You're missing a slash before "home"
ASKER
i fix it, but the error message is the same : (
> i fix it, but the error message is the same : (
service xinetd reload
service xinetd reload
ASKER
i restart my computer but it still say that error : (
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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 ^_^