delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/24/01:12:48

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 B20A2385AC19
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=brian DOT inglis AT systematicsw DOT ab DOT ca
X-Authority-Analysis: v=2.3 cv=LKf9vKe9 c=1 sm=1 tr=0
a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17
a=IkcTkHD0fZMA:10 a=AMpejqzua1VCGlgbdkcA:9 a=QEXdDO2ut3YA:10
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>
<5fb8039b-d12c-a382-3055-3fb356fb60cd AT gmail DOT com>
<958405ee-bb3c-042b-fba9-164a75daa87f AT mehconsulting DOT com>
<486cb900-a8ed-a87e-d04c-c1612871c530 AT gmail DOT com>
<1e9afb37-c076-4a06-08bc-4410205251b7 AT gmail DOT com>
<448cf4fe-0697-771d-c8e4-81d778f5ca4e AT mehconsulting DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Autocrypt: addr=Brian DOT Inglis AT SystematicSw DOT ab DOT ca; prefer-encrypt=mutual;
keydata=
mDMEXopx8xYJKwYBBAHaRw8BAQdAnCK0qv/xwUCCZQoA9BHRYpstERrspfT0NkUWQVuoePa0
LkJyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFN5c3RlbWF0aWNTdy5hYi5jYT6IlgQTFggA
PhYhBMM5/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQW
AgMBAh4BAheAAAoJEB62lxu92I8Y0ioBAI8xrggNxziAVmr+Xm6nnyjoujMqWcq3oEhlYGAO
WacZAQDFtdDx2koSVSoOmfaOyRTbIWSf9/Cjai29060fsmdsDLg4BF6KcfMSCisGAQQBl1UB
BQEBB0Awv8kHI2PaEgViDqzbnoe8B9KMHoBZLS92HdC7ZPh8HQMBCAeIfgQYFggAJhYhBMM5
/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsMBQkJZgGAAAoJEB62lxu92I8YZwUBAJw/74rF
IyaSsGI7ewCdCy88Lce/kdwX7zGwid+f8NZ3AQC/ezTFFi5obXnyMxZJN464nPXiggtT9gN5
RSyTY8X+AQ==
Organization: Systematic Software
Message-ID: <06f658d1-ddef-5f44-74d1-294a2144d46a@SystematicSw.ab.ca>
Date: Thu, 23 Apr 2020 23:11:52 -0600
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: <448cf4fe-0697-771d-c8e4-81d778f5ca4e@mehconsulting.com>
X-CMAE-Envelope: MS4wfFM/cCWx30RIJXmmiBo/VmDhok1ZQYPIb35EgreVYXkFUD8MJW8GeA129WgnJK/L4BqyHbjTK+rkOFjrRnE9uWTugeGm8a30lzXZhmTwSJmkAsMSVrk6
OMgKeeNjicZ9WrPlDBuzvz71OBOvkF1QJtuW5n2M8aPpOjR2+JJuMT0HNTPcDWgt4HFUo1eQ3glQTQ==
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, BODY_8BITS,
COVID_BODY, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW,
RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE,
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>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 03O5CTfT006865

On 2020-04-23 15:50, Mark Hansen wrote:
> On 4/23/2020 12:30 PM, Marco Atzeri via Cygwin wrote:
>> Am 23.04.2020 um 21:19 schrieb Marco Atzeri:
>>> Am 23.04.2020 um 17:25 schrieb Mark Hansen:
>>>> On 4/23/2020 5:51 AM, Marco Atzeri via Cygwin wrote:
>>>>> 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.

>>>>> check the differences in outputs for
>>>>>       "mkpasswd -c" and "id"
>>>>> in the two cases.

>>>> I have the differences for 'id' in the two cases. However, I currently
>>>> don't have access to my office during the 'stay at home' order we're
>>>> having to honor these days.
>>>> I don't understand the difference in the 'id' output, but they are 
>>>> different. I showed the first little bit of each in my first message.
>>>> Does this help? Should I attach the complete output of the two runs
>>>> here?

>>> I would look at any differences in the 4th and 5th field of
>>>   "mkpasswd -c" output

>> 5th (SID) and 6th (Home)

> Here is my mkpasswd -c output while the machine is at home (I can't run it
> at the office, as I'm not allowed to go there at this time):
> Mark.Hansen:*:1293438:1049089:U-MAN\Mark.Hansen,
> S-1-5-21-602162358-1060284298-725345543-244862
> :/cygdrive/c/Users/mark.hansen:/bin/zsh
> Note that my domain is "MAN" not "U-MAN" - I don't know if that is
> significant. This does show my home directory as
> /cygdrive/c/Users/mark.hansen, which is correct.

Try:

$ getent passwd $USER

as I believe getent uses the /etc/nsswitch.conf settings while mkpasswd may not:
they often produce different lists or entries when I run them.

Not sure if it still applies, although it is still suggested in the docs:
install and run the cygserver service, then use passwd -R to stash your password
in the registry to allow network access.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
--
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