X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EC7C3385DC0B
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
 header.from=mehconsulting.com
Authentication-Results: sourceware.org;
 spf=pass smtp.mailfrom=cygwin@mehconsulting.com
DKIM-Filter: OpenDKIM Filter v2.11.0 stargate.mehconsulting.com 03NBs1Z3022964
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mehconsulting.com;
 s=default; t=1587642842;
 bh=4Nwv7mThuCXvOjXOO9owbDt4qTtrW2nZIrwBnHlNXkQ=;
 h=Subject:To:References:From:Date:In-Reply-To:From;
 b=IVvPJhDyNzA0fyKCBCU1dUxHbU3H9j8ta/ddTK5kOcz8rdPEutC86WuX5RQqrgOJW
 ekliQZcf9AduDM9iUP1NPEhWFidSaSD/iU52d3QLO4o4lWqd0GuvCpreu5Yad3AAAh
 WwVbqQYE9cDnpInYwPWKh60LS8MQeLhHBXqJBFZI=
Subject: Re: Problems with ssh when I log into my PC using my corporate domain
 while working from home
To: cygwin@cygwin.com
Newsgroups: gmane.os.cygwin
References: <r7n3nu$1u6e$1@ciao.gmane.io>
 <fe993c46-45e5-6156-dda1-16fafeb6214a@mehconsulting.com>
From: Mark Hansen <cygwin@mehconsulting.com>
Message-ID: <4c387fd0-db14-2d8f-3590-54c83e3a60e7@mehconsulting.com>
Date: Thu, 23 Apr 2020 04:54:01 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <fe993c46-45e5-6156-dda1-16fafeb6214a@mehconsulting.com>
Content-Language: en-US
X-Spam-Status: No, score=3.9 required=5.0 tests=BAYES_40, COVID_BODY,
 DKIM_INVALID, DKIM_SIGNED, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS,
 TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Level: ***
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

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.

--
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
