delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/23/08:52:35

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B9343954C7B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1587646309;
bh=VNRJOL46+SC0OTd6oXdrwLShEqLXi9IJKXhPbYqeARs=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=swukO9lv0vWk0k8HAwjlHThbkXpLCBNje1QCn2wGQWRv9j38TfWlGNG0rKnfAAnhK
2iJ+rRDYchfZq0KjKHE6bCgy9ocrz2eT11BNia0p0y/UHm7vryAxy480MDnUGTlMpa
32dqsKqF5uSn9JzPCe43C97P27L9PYp97t8VgJ+c=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7C3383851C00
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:subject:to:references:from:message-id:date
:user-agent:mime-version:in-reply-to:content-transfer-encoding;
bh=+jCS0ZOQUu+DJHA5j6L+SLK5h/w+Td1zw0jRnTX0ad4=;
b=jxYs5Dm9bvDrbuWf5KbLAaNwLuYJ0YQ9dNBO66ljU/fhGAkB55cBreIUYUmEqGlFmB
Nb58Xx6Ysqj8NESA7jkSLTueuoJqAsagWDTLTGIjL0DKj6Opd62Q26B1HLpx/1RVXDdA
GuvjY9vTtNomXhsxTag89vZg7vaGyOKNwYezKcJSmPBRcOt/i6+wLXgoopPVwGu2WPGR
2G7En/3aSv+JFpYyVBhqfVf07hYa/oS/AYQ2xtmwIC7YncS+awRRb6mti4kjO9X8CLnI
qolM94vZHogZcY7s5gLChRlExLGlAY+YsBZMAP9xHMwmBVR7R+WVIBNLL91ezka4ajWZ
FwYA==
X-Gm-Message-State: AGi0PubiDVeppSM8zIUZJP6Lh34bf8VdY+xVniVNoVoyH97SXveP799l
Q/BY70kL8pIt2Ot+H3cKTw8GyshG
X-Google-Smtp-Source: APiQypJF5tT88fXiAYKL4cU6Xlk4vTJ3+gckrK2DN6Zy0boN7y/okF13PhY5rboEKiTqRwmjWFtzFQ==
X-Received: by 2002:a5d:5230:: with SMTP id i16mr5112374wra.71.1587646304986;
Thu, 23 Apr 2020 05:51:44 -0700 (PDT)
Subject: Re: Problems with ssh when I log into my PC using my corporate domain
while working from home
To: cygwin AT cygwin DOT com
References: <r7n3nu$1u6e$1 AT ciao DOT gmane DOT io>
<fe993c46-45e5-6156-dda1-16fafeb6214a AT mehconsulting DOT com>
<4c387fd0-db14-2d8f-3590-54c83e3a60e7 AT mehconsulting DOT com>
Message-ID: <5fb8039b-d12c-a382-3055-3fb356fb60cd@gmail.com>
Date: Thu, 23 Apr 2020 14:51:42 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.7.0
MIME-Version: 1.0
In-Reply-To: <4c387fd0-db14-2d8f-3590-54c83e3a60e7@mehconsulting.com>
X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, COVID_BODY,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Am 23.04.2020 um 13:54 schrieb Mark Hansen:
> On 4/21/2020 2:52 PM, Mark Hansen wrote:
>> On 4/21/2020 8:33 AM, Mark Hansen wrote:
>>> I have a Windows 10 laptop, on which I installed Cygwin. I always log 
>>> into the machine using
>>> my corporate domain account. When I log into the machine from my 
>>> office, everything Cygwin
>>> works fine.
>>>
>>> When I log into my laptop from home (which I'm working from home for 
>>> a while now, due to
>>> COVID-19), I still log in using my corporate domain account, but 
>>> Cygwin acts differently.
>>>
>>> Here is my user id (from the id command) when I log in from the office:
>>>
>>> uid=1293438(Mark.Hansen) gid=1049089(Domain Users) ...
>>>
>>> Here is the same when I've logged in with the machine at home:
>>>
>>> uid=1293438(MAN+User(244862)) gid=1293438
>>>
>>> (MAN) is the domain.
>>>
>>> The actual problem I'm having is that Cygwin tools like ssh, git, 
>>> etc. can't find my .ssh
>>> directory. They are looking in "/" rather than my home directory.
>>>
>>> I tried copying my .ssh directory from my home to "/" and although it 
>>> was created, the
>>> files have the wrong permissions and I'm unable to change them.
>>>
>>> Is there something I can tweak to get Cygwin to understand which user 
>>> I am so the ssh
>>> stuff can start working again?
>>>
>>> Thanks for any help.
>>>
>>
>> To answer a question posed by someone to my private e-mail:
>>
>> I didn't have the HOME environment variable set at first. When the PC 
>> is at my office,
>> Cygwin worked fine. When I took the PC home and logged in there, I had 
>> severe Cygwin
>> issues - I wasn't able to open a Cygwin Terminal or an XTerm terminal 
>> - it seemed it
>> didn't know where my HOME directory was.
>>
>> As a result, I set my HOME directory in the environment settings for 
>> my user. Once I
>> did that, I was able to use the Cygwin Terminal and XTerm terminals 
>> again.
>>
>> The only thing that is still not working (as far as I can see) is any 
>> ssh client which
>> needs to find the .ssh directory (like ssh or git, etc.).
>>
> 
> Assuming Cygwin doesn't know about my user (when the PC is at home) - is 
> there something
> I can run to reset what Cygwin thinks is the user?
> 
> Otherwise, I'll try reinstalling Cygwin and see if that helps.
> 
> -- 

check the differences in outputs for

     "mkpasswd -c" and "id"

in the two cases.



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

- Raw text -


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