LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-13-2004, 12:48 AM   #1
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
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=server: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
 
Old 01-16-2004, 05:31 AM   #2
amitabhmca
LQ Newbie
 
Registered: Oct 2003
Location: delhi
Distribution: red hat linux
Posts: 10

Rep: Reputation: 0
same problem is my

please give the solution for cvs login failed

amitabh
 
Old 01-16-2004, 05:35 AM   #3
amitabhmca
LQ Newbie
 
Registered: Oct 2003
Location: delhi
Distribution: red hat linux
Posts: 10

Rep: Reputation: 0
i am sufering from this same problem please anybody give proper solution

amitabh pandey
 
Old 01-16-2004, 05:52 PM   #4
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
i have solved the problem. pls, nmap ur machine see whether cvspserver port is opened?
 
Old 01-16-2004, 10:32 PM   #5
amitabhmca
LQ Newbie
 
Registered: Oct 2003
Location: delhi
Distribution: red hat linux
Posts: 10

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

AMITABH

Last edited by amitabhmca; 01-16-2004 at 10:34 PM.
 
Old 01-18-2004, 06:17 PM   #6
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
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...

Last edited by yenonn; 01-18-2004 at 06:19 PM.
 
Old 01-19-2004, 10:07 PM   #7
amitabhmca
LQ Newbie
 
Registered: Oct 2003
Location: delhi
Distribution: red hat linux
Posts: 10

Rep: Reputation: 0
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
 
Old 01-19-2004, 11:34 PM   #8
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
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....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running CVS Server on Fedora Core 4 with pserver as "cvs" user rupak Fedora 2 09-17-2005 02:06 PM
Running CVS Server with pserver as "cvs" user on Fedora Core 4 rupak Linux - Software 2 09-17-2005 12:10 PM
Helllpppp murder Linux - Newbie 6 08-19-2005 11:49 AM
create a cvs repository with existing files to cvs powah Linux - Software 1 08-19-2005 09:19 AM
Obtaining sources by CVS - no cvs access cybrjackle *BSD 0 01-18-2005 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration