X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 26 Sep 2007 18:51:53 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: OpenSSH and user environment: Maybe not initialized correctly Message-ID: <20070926165153.GA17743@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com 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> <46FA89AE DOT 4030804 AT gmx DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46FA89AE.4030804@gmx.net> User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sep 26 18:32, Frank wrote: > >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 Using pubkey authentication, the user name Cygwin sees is not the user name Windows sees. This is a problem of how pubkey authentication is achieved, and in which logon session the processes are running. The strange Windows behaviour is a long-standing bug (present in NT 4 already), IMHO, which never got fixed (still present in Vista). This has been discussed many many times on this list. Please search the mailing list archives. If you want Windows having the same idea of the user name as Cygwin, you must either use password authentication, or you can take the risk using the Cygwin developer snapshots and install the cyglsa DLL. There's a /usr/bin/cyglsa-config script which helps you to install it. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/