LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cvs Helllpppp!!!!! (https://www.linuxquestions.org/questions/linux-general-1/cvs-helllpppp-134231/)

yenonn 01-13-2004 12:48 AM

Cvs Helllpppp!!!!!
 
To all,

i want to setup a CVS. i am using RH8.0. RH8.0 defaulted is installed with cvs. so, i just do plenty of configurations...

1. export CVSROOT=/cvs

2. adduser cvs then, chown -R cvs /cvs and chgrp -R cvs /cvs

3. cvs -d /cvs init

4. touch /etc/xinetd.d/cvspserver

5. edit cvspserver and add this:
service cvspserver{
port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv = path
server = /usr/local/bin/cvs
server_args = -f --allow-root=/usr/cvsroot pserver
}

6. /etc/rc.d/init.d/xinetd.d restart

7. touch /cvs/CVSROOT/passwd

8. edit passwd and add this:
yohiu::cvs

9. adduser -G cvs yohiu

10. try to testing cvs
export CVSROOT=:pserver:yohiu@127.0.0.1:/cvs

11 cvs login

after that, i press enter to bypass the password since i dont set any password for yohiu.

but, it yields me this

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

i dont see where is the point that i have done mistakes.... pls... help me to troubleshoot... thanks...

cheers,
yenonn

amitabhmca 01-16-2004 05:31 AM

same problem is my
 
please give the solution for cvs login failed

amitabh

amitabhmca 01-16-2004 05:35 AM

i am sufering from this same problem please anybody give proper solution

amitabh pandey

yenonn 01-16-2004 05:52 PM

i have solved the problem. pls, nmap ur machine see whether cvspserver port is opened?

amitabhmca 01-16-2004 10:32 PM

hi YENONN
thanks for cvs solution but PLEASE GIVE THE DETAIL'S Of NMAP.

AMITABH

yenonn 01-18-2004 06:17 PM

I have a mistake over the cvspserver service

>>server_args = -f --allow-root=/usr/cvsroot pserver (wrong)

it should be >>server_args = -f --allow-root=/cvs pserver
since my respository directory is staying at /cvs so, i should have >>--allow-root=/cvs pserver

Following by this, u should have restarting ur xinetd.d service. and nmap ur machine.. just simply prompt >>nmap ur_machine_name
it will give u the detail of opening ports on ur machine..make sure ur 2401 port is opening. then, cvs server setup is pretty much done.

Take note of this, those user who is using or contributing (write access or read-only) must be granted a permission to access the directory...just simply add the user in the owner group.

and of course, at dir $CVSROOT/CVSROOT/ >>touch writers and >> touch readers.
file writers is for user who can write on the disk, and readers is for user who only able to read-only.
lastly >> touch passwd
pserver will authenticate user and user_password in passwd file
the format is as such...
[user_id]:[encrypted_password]:[system_account]
so, in my case i have put yohiu::cvs in my passwd file and yohiu in my writers file. cvs is actually a owner of $CVSROOT. so, yohiu::cvs means that, yohiu with no password can access to a system account called cvs.
and yohiu is granted a write permission to the disk.

i am trying to figure out on how to get a encrypted string for the password.
any idea?? i am thinking of writting some bash shell script to settle all this nitty-gritty of steps. but how??? gosh... i have to learn on how to write bash script first...

amitabhmca 01-19-2004 10:07 PM

cvs
 
hi YENONN

thank you very much.YENONN where r u & what is your skills.
plese give your mail id because if any problem comes so i will contact u.

thanks
amitabh

yenonn 01-19-2004 11:34 PM

there are lot of experts out there... btw, i am just learning....i am not an expert.....LQ is the best linux forum..many experts are helpful...anyway... u are welcome....


All times are GMT -5. The time now is 02:19 AM.