LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 05:58 AM   #1
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 229

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, 03: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-20-2010, 12:26 AM   #3
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 229

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-20-2010, 12:32 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
cvs -d : pserver:<user>@<host>:/path/to/cvs/repository
 
Old 09-20-2010, 12:34 AM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

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

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

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, 01: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, 01:38 AM   #8
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 229

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, 02:09 AM   #9
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
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-22-2010, 12:51 AM   #10
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 229

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


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 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-29-2009 12:50 AM
How to access CVS with windows username and password? hsia Linux - Newbie 2 11-13-2008 05:45 AM
Setting up CVS To Avoid Using Password cmnorton Linux - General 2 03-11-2008 08:07 AM
cvs repository cvs-1.11.21.tar.gz installation problem on redhat 5 linux version ajaytiwary Linux - Newbie 1 09-30-2007 01:58 PM


All times are GMT -5. The time now is 10:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration