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

Reply via email to