delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/23/14:12:00

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 20097395A014
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=mehconsulting.com
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=goc-cygwin AT m DOT gmane-mx DOT org
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Mark Hansen <cygwin AT mehconsulting DOT com>
Subject: Re: Problems with ssh when I log into my PC using my corporate domain
while working from home
Date: Thu, 23 Apr 2020 11:10:24 -0700
Message-ID: <49c12452-3402-54ff-57ba-f61757d99ae0@mehconsulting.com>
References: <r7n3nu$1u6e$1 AT ciao DOT gmane DOT io> <871roeyuy0 DOT fsf AT Otto DOT invalid>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
In-Reply-To: <871roeyuy0.fsf@Otto.invalid>
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,
HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, 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>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 4/23/2020 10:26 AM, ASSI wrote:
> Mark Hansen writes:
>> 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.
> 
> That likely means that when you connect from home, you cannot talk to the
> corporate domain server or you are ion a different domain.  The domain
> part is only shown when it isn't the primary domain IIRC and since the
> numerical user instead of the name is shown, that SID did not resolve.
> 
>> 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.
> 
> Depending on how this is set up in your domain, you might need to point
> either Cygwin or sshd to use a separate local directory.  You have no
> network access on Windows (i.e. you won't be able to access any fils
> shares) until you've authenticated with a password.
> 
>> 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.
> 
> You would need to be either an admin and/or the user who installed
> Cygwin for that to work, but you shouldn't do that.
> 
>> Is there something I can tweak to get Cygwin to understand which user I am so the ssh
>> stuff can start working again?
> 
> If Cygwin doesn't know who you are, then that means Windows doesn't know
> either, so fixing this on the Cygwin side won't get you much further.
> 
> 
> Regards,
> Achim.
> 

I think Windows knows who I am. I log into the machine using my normal domain login
credentials. The machine looks the way it does when I log in when the machine is in the
office - the desktop is the same, etc. - it's not acting like I'm a new user or anything
like that.

Everything on the Windows side seems to be working fine. The only issue I've found is with
Cygwin. Is there a way (short of removing and reinstalling Cygwin) that I can get Cygwin
to recognize my current user so ssh and git can know where my home directory is located?



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