delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/26/12:33:17

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Authenticated: #41939689
Message-ID: <46FA89AE.4030804@gmx.net>
Date: Wed, 26 Sep 2007 18:32:46 +0200
From: Frank <franki2006 AT gmx DOT net>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: OpenSSH and user environment: Maybe not initialized correctly
References: <46F9038D DOT 9020802 AT gmx DOT net> <46F93BA7 DOT 2040803 AT cygwin DOT com> <46F9FF07 DOT 1010203 AT gmx DOT net> <46FA83C0 DOT 1030401 AT cygwin DOT com>
In-Reply-To: <46FA83C0.1030401@cygwin.com>
X-Y-GMX-Trusted: 0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

> No, I don't see allot that clarifies things for me here, but thanks for
> sending it. :-)
No problem - you arw elcome. - I might have been helpful...

> I do see that FI-WIN and AMD64 don't have '/bin/sh' but
> I don't think that's significant in your case (though you should reinstall
> the 'bash' package to fix this).
There is a "sh". See:
$ ll /bin/sh
lrwxrwxrwx 1 illenseer None 8 Nov 10  2006 /bin/sh -> bash.exe

> I'm actually surprised that you get AMD to report your user name with
> pubkey authentication.
We maybe do misunderstand (or I do...):
On amd64 I do NOT get the correct user name. (And also my MPIEXEC uses the
wrong user name...)

> I'm not aware of anything in the current Cygwin
> release that would allow one to authenticate with Windows using pubkey
> authentication, which is why I suggested password authentication as an
> alternative (I know it's hardly the same thing).
Unfortunately I cannot switch to interactive password authentication.
So that is not a workarund...   :-(

> You might find
> comparing debugging output from the server side from both machines on
> login to be enlightening.  Other alternatives I can think of is
> authenticating "illenseer" (via 'net use' or some other mechanism of
> your choosing) when you connect with 'ssh' or moving to a snapshot to
> take advantages of improvements there.  You can also try forcing
> 'ssh-host-config' to create the 'sshd_server' on your XP box and
> use that user instead to run 'ssd' there.  Maybe whatever magic you're
> experiencing on AMD64 will transfer to SMITHFIELD.
Can you explain more detailed what you are thinking of, please? - I do
not quite get your point or yur ideas/suggestions...

> Please let us know if you find something here that explains the different
> behavior you see on these two machines.
I will dig around if time permitts and if I find something I will inform you.

> BTW, I am assuming that you're using 'whoami' from Windows on both of these
> machines.  If not, then we know why you see the difference reported by 
> these machines. ;-)
on FI-WIN:     which whoami                 => /usr/bin/whoami
on  AMD64:     ssh amd64 which whoami       => /cygdrive/c/WINDOWS/system32/whoami
on SMITHFIELD: ssh smithfield which whoami  => /usr/bin/whoami

And I did one additional test:

   ssh amd64 whoami            => amd64\sshd_server
   ssh amd64 /usr/bin/whoami   => illenseer


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019