LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-19-2010, 04:58 AM   #1
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Rep: Reputation: 18
cvs password


hi
i need to checkout a project from cvs fort a particular user
i use the following command
cvs -d server:francis:francis@cvs@10.200.2.23:/projects/aa_cesar co myproject

when i do it using the eclipse it works fine but when i do it command line it does not checkout
the reason is it takes cvs@10.200.2.23 unable to connect
that is wrong username pasword credentials are given

please help me with this issue

thankx
 
Old 09-19-2010, 02:28 PM   #2
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
You probably have the wrong syntax for the path (-d parameter).

It should go like:

Code:
:pserver:username@hostname:/path/to/cvs_repository/
In your case something like


Code:
:pserver:francis@10.200.2.23:/projects/aa_cesar/
 
Old 09-19-2010, 11:26 PM   #3
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Original Poster
Rep: Reputation: 18
hi
th syntax is right

my username is francis
and password is francis@cvs i have a special character in my password
so substituting the above values i get the same result
 
Old 09-19-2010, 11:32 PM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
cvs -d : pserver:<user>@<host>:/path/to/cvs/repository
 
Old 09-19-2010, 11:34 PM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi this troulbshooting link will be usefull

http://www.thathost.com/wincvs-howto/cvsdoc/cvs_21.html
 
Old 09-20-2010, 02:04 AM   #6
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Original Poster
Rep: Reputation: 18
hi i am able to checkout the code as a different user , some users have special characters in their passwords
link in my case
since i have @ in my password it treats text after @ as the username and tried to connect which is invalid

cvs -d server:francis:francis@cvs@10.200.2.23:/projects/aa_cesar co myproject

cvs -d server:username:password@10.200.2.23:/projects/aa_cesar co myproject
 
Old 09-20-2010, 12:17 PM   #7
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
Ah... that was not quite clear in your first post.

Do a cvs login first:

Code:
cvs -d :pserver:francis@10.200.2.23:/projects/aa_cesar/ login
cvs will then ask for a password and store it (encrypted, sort of) in ~/.cvspass. In future, cvs will lookup the password in ~/.cvspass and giving it on the command line will be unnecessary, so you can checkout with

Code:
cvs -d :pserver:francis@10.200.2.23:/projects/aa_cesar/ co myproject
 
Old 09-21-2010, 12:38 AM   #8
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Original Poster
Rep: Reputation: 18
but what if i wasnt to put it in a script
coz the developers do this on a frequent basis they need to checkout and compile the code every week
so inorder to make life easy i developed this script for them but the problem is that it does not accept special characters

is there any way out instead of changing the password
 
Old 09-21-2010, 01:09 AM   #9
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Entries with spaces or other special characters in them should be enclosed in quotes.

Refer this link ... i used cvs long time back.. now using svn .. but htis link will be helpful to you... it has one script...

though its not related to special characters in password but special character in data ... you can refer it ...


http://www.brain.com.pk/~mnk/Tutoria...6lev1sec3.html
 
Old 09-21-2010, 11:51 PM   #10
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Original Poster
Rep: Reputation: 18
I tried what u said by putting double quotes , single quotes curly braces for the passowrd entry but nothing seems to work in the script , is there any other alternative
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a user for CVS pserver without a password? maradnus Linux - Newbie 0 04-28-2009 11:50 PM
How to access CVS with windows username and password? hsia Linux - Newbie 2 11-13-2008 04:45 AM
Setting up CVS To Avoid Using Password cmnorton Linux - General 2 03-11-2008 07:07 AM
cvs repository cvs-1.11.21.tar.gz installation problem on redhat 5 linux version ajaytiwary Linux - Newbie 1 09-30-2007 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 AM.

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