Re: flexible password file location

2002-02-06 Thread Larry Jones

=?iso-8859-1?q?E=20B?= writes:
> 
> I had a look at the Ant source. They do not use
> 'cvs login' to add an entry to the .cvspass. Instead
> they are adding it themselves. How reliable is this?

Not very.  The format of the file is undocumented and has already
changed at least once.

-Larry Jones

The hardest part for us avant-garde post-modern artists is
deciding whether or not to embrace commercialism.  -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: flexible password file location

2002-02-06 Thread Larry Jones

=?iso-8859-1?q?E=20B?= writes:
> 
> My current client is 1.10.5 and doesnt support this.
> Any idea if wincvs 1.2/1.3 has this 1.11.1 client?

I have no idea.

> btw, why is it not recommended? The reason I am asking
> this is, the command cvs login expects password
> strictly from stdin (like the passwd command).

Because it puts the password in plain sight.  For example, on most
Unix-like systems, anyone can do a ``ps'' and see your entire command
line, including your password.

-Larry Jones

Your bangs do a good job of covering up the lobotomy stitches. -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: flexible password file location

2002-02-05 Thread E B

 --- E B <[EMAIL PROTECTED]> wrote: >  --- Larry
Jones <[EMAIL PROTECTED]> wrote: >
> =?iso-8859-1?q?E=20B?= writes:
> > > 
> > > 1. Can passwd be supplied using any mechanism
> > > other than ~/.cvspass
> > 
> > As of CVS 1.11.1, you can specify the password in
> > the CVSROOT:
> > 
> > :pserver:user:password@host/cvsroot
> > 
> > but it's not recommended.
> 
> 
> My current client is 1.10.5 and doesnt support this.
> Any idea if wincvs 1.2/1.3 has this 1.11.1 client?
> btw, why is it not recommended? The reason I am
> asking
> this is, the command cvs login expects password
> strictly from stdin (like the passwd command).
> Btw, how does Ant get away with this?
> 


I had a look at the Ant source. They do not use
'cvs login' to add an entry to the .cvspass. Instead
they are adding it themselves. How reliable is this?
Probably I can also do this.

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: flexible password file location

2002-02-05 Thread E B

 --- Larry Jones <[EMAIL PROTECTED]> wrote: >
=?iso-8859-1?q?E=20B?= writes:
> > 
> > 1. Can passwd be supplied using any mechanism
> > other than ~/.cvspass
> 
> As of CVS 1.11.1, you can specify the password in
> the CVSROOT:
> 
>   :pserver:user:password@host/cvsroot
> 
> but it's not recommended.


My current client is 1.10.5 and doesnt support this.
Any idea if wincvs 1.2/1.3 has this 1.11.1 client?
btw, why is it not recommended? The reason I am asking
this is, the command cvs login expects password
strictly from stdin (like the passwd command).
Btw, how does Ant get away with this?

> 
> > 2. Is the location of .cvspass flexible (it seems
> > not, but am i correct?).
> 
> No, it's not.
> 

This is irrelavant now :)



> > 3. lets say I am user X, and when I login, I have
> > this new file ~X/.cvsfile. Now from the same shell
> > I change username to Y in my CVSROOT, and do a
> login.
> > the same ~X/.cvsfile is getting modified. and not
> > ~Y/.cvspass. I am struck :-(
> 
> I presume you mean .cvspass, not .cvsfile.
> 
> You're not struck, or even stuck.  If you look at
> your ~/.cvspass file,
> you'll see that it contains *both*
> usernames/passwords.  Logging in to a
> repository is not like logging in to a system -- all
> it does is cause
> CVS to remember the corresponding password (in
> ~/.cvspass) so you don't
> have to type it in every time you want to do
> something.  You typically
> log in to a repository only once and never log out
> -- I'm currently
> logged in to 14(!) repositories.  So, the fact that
> all of the passwords
> are going into the same file is irrelevant -- you
> can still simulate
> multiple users just fine.
> 


Okay, thats a good news! The .cvspass file indeed has
all the users and passords for different hosts. 



> -Larry Jones
> 
> You're going to be pretty lonely in the nursing
> home. -- Calvin
> 
> ___
> Info-cvs mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/info-cvs 

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: flexible password file location

2002-02-05 Thread Larry Jones

=?iso-8859-1?q?E=20B?= writes:
> 
> 1. Can passwd be supplied using any mechanism
> other than ~/.cvspass

As of CVS 1.11.1, you can specify the password in the CVSROOT:

:pserver:user:password@host/cvsroot

but it's not recommended.

> 2. Is the location of .cvspass flexible (it seems
> not, but am i correct?).

No, it's not.

> 3. lets say I am user X, and when I login, I have
> this new file ~X/.cvsfile. Now from the same shell
> I change username to Y in my CVSROOT, and do a login.
> the same ~X/.cvsfile is getting modified. and not
> ~Y/.cvspass. I am struck :-(

I presume you mean .cvspass, not .cvsfile.

You're not struck, or even stuck.  If you look at your ~/.cvspass file,
you'll see that it contains *both* usernames/passwords.  Logging in to a
repository is not like logging in to a system -- all it does is cause
CVS to remember the corresponding password (in ~/.cvspass) so you don't
have to type it in every time you want to do something.  You typically
log in to a repository only once and never log out -- I'm currently
logged in to 14(!) repositories.  So, the fact that all of the passwords
are going into the same file is irrelevant -- you can still simulate
multiple users just fine.

-Larry Jones

You're going to be pretty lonely in the nursing home. -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



flexible password file location

2002-02-05 Thread E B

I want to simlate multiple users loging into
cvs server, programmatically.

1. Can passwd be supplied using any mechanism
other than ~/.cvspass
2. Is the location of .cvspass flexible (it seems
not, but am i correct?).

3. lets say I am user X, and when I login, I have
this new file ~X/.cvsfile. Now from the same shell
I change username to Y in my CVSROOT, and do a login.
the same ~X/.cvsfile is getting modified. and not
~Y/.cvspass. I am struck :-(

Any suggestions/workarounds?
thanks!

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs