delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4A7B0E98.4060004@cygwin.com> |
Date: | Thu, 06 Aug 2009 13:10:48 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: 1.5.25: Different users when using ssh |
References: | <F093A6432162A340A56AE8639DF37FC204782059 AT atlas DOT agroup DOT dot DOT corp> |
In-Reply-To: | <F093A6432162A340A56AE8639DF37FC204782059@atlas.agroup.dot.corp> |
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 |
On 08/06/2009 12:52 PM, Göransson David wrote: > Hi all > > I am trying to execute some scripts on a Win2003 R2 virtual machine via ssh. The problem is that the user running on the remote machine isn't what I expect. > > When running > ssh administrator AT 10 DOT 0 DOT 2 DOT 15 whoami > it gives me > deployment-w2k3\cyg_server > > However, if I start with > ssh adminstrator AT 10 DOT 0 DOT 2 DOT 15 > and in the resulting shell write > whoami > I get > Adminstrator > > I use public key authentication, which I have understood can create some problems, but it seems to me that since it works in the second case, it shouldn't have anything to do with that. > Is there something to execute to change user, set user variables and such? I tried /etc/profile, but that didn't work. No. This is a limitation of the SSH under Cygwin 1.5.x. You can try Cygwin 1.7 <http://cygwin.com/#beta-test> which provides more options to deal with the issue of public key authentication. See <http://cygwin.com/1.7/cygwin-ug-net/ntsec.html#ntsec-setuid-overview> for details and options. "Method 2" is probably what you want. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |