info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSHD user-switching under Cygwin/XP (was Re: Case insensitivity ad n


From: David Wood
Subject: Re: SSHD user-switching under Cygwin/XP (was Re: Case insensitivity ad nauseum)
Date: Wed, 10 Dec 2003 14:20:40 -0500

Now I'm really out on a limb, but, what user is sshd running as before it 
switches? Does logging into sshd without a password, using a key instead, 
merely mean that no switch from this "default sshd user" occurs? If that's 
the case, can we adjust the "default user" that sshd runs as?

address@hidden wrote on 12/10/2003 
02:09:17 PM:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Nathan Kidd wrote:
> 
> > Derek Robert Price wrote:
> >
> >>> I didn't carefully read over this whole list of permutations, but at
> >>> first glance, perhaps it's just the domain for oberon that's 
missing?
> >>>
> >>> e.g.
> >>>
> >>> net use z: \\empress\oberon /user:empress\oberon  <password>
> >>>
> >>>
> >>>
> >>> Yep.  That's it, I just also have to login using a password rather 
than
> >>> my private/public key pair.
> >>
> >>
> >> As I revisit this, I note however, that this is not sufficient.  I'm
> >> trying to set up automated testing, so I couldn't enter the password 
if
> >> I wanted to - even saving to a file and attempting to echo it to ssh
> >> doesn't work because ssh grabs the TTY to get the password.  I really
> >> need to use public key authentication, but this prevents SSHD from
> >> grabbing the Windows authentication tokens.
> >>
> >> I think maybe this is a Windows (combined with SSHD?) limitation that 
I
> >> cannot get any access to network resources without authenticating 
with a
> >> password?
> >
> >
> > I don't know if this helps in your situation, but if you are always
> > testing from the same machine you could have a persistent connection
> > to some share on empress using oberon's password.  Any subsequent
> > access to any share on empress will automatically use this
> > user/password without prompting for it.  That is, it is sufficient to
> > simply run:
> >    net use * \\empress\oberon
> >
> > But then if you do this you might as well make the original connection
> > you want as persistent and never even bother with "net use" in your
> > script.
> >
> > (On W2K, at least, it doesn't even seem possible to use a password
> > from STDIN.)
> 
> 
> That doesn't work.  As near as I can tell now based on my experiments
> and reading, my problem is that I am attempting to launch the tests via
> an automated ssh connection from another computer.  SSHD on Cygwin does
> user-switching, but only gets Windows auth tokens if you use your
> Windows password to login.  Since I can't use a password with ssh from
> an automated script, I cannot get Windows auth tokens, and without
> Windows auth tokens, Windows won't let me see or mount, _any_ network
> share, not even a share that allows anonymous connections.
> 
> Derek
> 
> - --
>                 *8^)
> 
> Email: address@hidden
> 
> Get CVS support at <http://ximbiot.com>!
> - --
> I will not carve gods.
> I will not carve gods.
> I will not carve gods...
> 
>           - Bart Simpson on chalkboard, _The Simpsons_
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
> Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org
> 
> iD8DBQE/129cLD1OTBfyMaQRAufGAKDGEogiW2K/vheO9F7KeKnA3N/V8wCg3GMq
> 16ABCrtdg9dYiLjNChQb2lw=
> =LBvf
> -----END PGP SIGNATURE-----
> 
> 
> 
> 
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs





reply via email to

[Prev in Thread] Current Thread [Next in Thread]