From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8783 invoked by alias); 5 May 2011 21:23:35 -0000 Received: (qmail 8771 invoked by uid 22791); 5 May 2011 21:23:34 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from out2.smtp.messagingengine.com (HELO out2.smtp.messagingengine.com) (66.111.4.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 May 2011 21:23:19 +0000 Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.messagingengine.com (Postfix) with ESMTP id 2F0C8208DB for ; Thu, 5 May 2011 17:23:19 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute4.internal (MEProxy); Thu, 05 May 2011 17:23:19 -0400 Received: from [158.147.67.90] (158-147-67-90.harris.com [158.147.67.90]) by mail.messagingengine.com (Postfix) with ESMTPSA id DCD92443E36; Thu, 5 May 2011 17:23:18 -0400 (EDT) Message-ID: <4DC31547.3060407@cwilson.fastmail.fm> Date: Thu, 05 May 2011 21:23:00 -0000 From: Charles Wilson Reply-To: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: ssh issues References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-05/txt/msg00053.txt.bz2 On 5/5/2011 5:07 PM, René Berber wrote: > On 5/5/2011 3:31 PM, Eli Barzilay wrote: >> But now I'm trying to set up a Windows 7 build machine, and things get >> more complicated in a way that I think is related to the above. The >> first thing that fails (after I start sshd as myself, similarly to the >> XP box) is running the vcvarsall.bat in the devstudio directory -- >> that fails with a "Cannot determine the location of the VS Common >> Tools folder", which I tracked down to uses of some `reg' command that >> fail. The thing is that it works fine when running on a bash shell on >> the machine, but fails through ssh. >> >> Any pointers? > > Environment variables. When you login using ssh you get a different set > than the ones your Windows login has, including a modified PATH. env vars are a common issue (see: http://cygwin.com/ml/cygwin/2010-08/msg00245.html) but in this case I think it's somewhat different. On Vista and W7, the sshd process is running in a different "Windows Station" than the normal login. This *might* mean that the 'reg' command is accessing a different registry hive that you think it should. Can you run the 'reg' command manually, from a standard login and from an sshd session, and see what the results are in each case? -- Chuck -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple