X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:cc:content-type; q=dns; s=default; b=yt7f
	TENxsZxCpzUBmmxUo5IIJxNfDnz09hTvwscYhOGPu3vUzQ85/C69uDRQWHhN1okJ
	d9kHlgSfARnvPkSiyj4fj0iW3j+6AOzlE0rTTCxI/3wRfxDAlnnSOBK9hMEGtjJE
	ysjz2gLeHqRmfWb2Qf38sf+ePKKFfqK4UEW4RIk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:cc:content-type; s=default; bh=tPo/SNILjc
	p47nKDNz0R3uOzM7A=; b=raE4zvcnXDIlK0lmSF7MkDPoG6KS/YOUg1d9L4op89
	/LSO0G0rPGVd99XzhnMRwPziQ5Fz+aNKQ+jzKFqF8Mxbk1Ayz64OqkYawzVNtqI3
	O97pYOlVJIqbbZITESaTQwmi5gLD1sjV96vSla6+3OVFpSHRzMlLrvm0XeDDiVm9
	M=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:alternative
X-HELO: mail-ed1-f54.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=mime-version:references:in-reply-to:from:date:message-id:subject:to         :cc;        bh=9zADbiulIjds8BSzGPOp2SLxV6ObRZ8GPWzD1bRc+uc=;        b=cIxJYOECUCr7K7g0fEOMkgjElKfSTOVpt+n6CS7zNEtQpClTBMNLcphUJ8CM/BBbyl         mTQx+a5g5t6lgnw7yjThyTpjXQzbCgN6LUiWMjyI9S9lCCkic3vDeKayJy76rvFMJc53         mQ6UdgTbozwXgPxQl6UOKvn9Y9YY8bpU366WjpiBOnbqbEx6zVq0lAl9ibrUZTx6O7T/         5Ut7KQlMzn7OMDUqUkjbhQsHZtNM7hdpI68KtbSDQAgO1IgtvSoUtgGabrK5Vpxk6sgY         CFowo7Gi/i0LJfiXKRa+AUOMBOckD/z7uyAjh5/+/jXspMgvOPwAwb8VfutrpbMc0rRu         4gIQ==
MIME-Version: 1.0
References: <CAA5t8VocmswTXD4Y7QLxe1NkbZ0Jj+Nt40dFXjHF+9cTP8zW3A@mail.gmail.com> <5D571D62.5040104@tlinx.org> <CAA5t8VqUViA6Ztx+5U-kcjTebXZ2QkvQnJcRkUGZF2irBdineQ@mail.gmail.com>
In-Reply-To: <CAA5t8VqUViA6Ztx+5U-kcjTebXZ2QkvQnJcRkUGZF2irBdineQ@mail.gmail.com>
From: David Karr <davidmichaelkarr@gmail.com>
Date: Fri, 16 Aug 2019 18:44:25 -0700
Message-ID: <CAA5t8VoyaUfCef0dQ4cCwQimcJA-vCDvoDz8u9vPy5CPP5xKWg@mail.gmail.com>
Subject: Re: Win7 system update hosed something in Cygwin
To: L A Walsh <cygwin@tlinx.org>
Cc: "cygwin@cygwin.com" <cygwin@cygwin.com>
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes

On Fri, Aug 16, 2019 at 3:33 PM David Karr wrote:

> On Fri, Aug 16, 2019 at 2:17 PM L A Walsh wrote:
>
>> On 2019/08/15 18:28, David Karr wrote:
>> > I logged into my Win7 laptop and I saw it was having some connection
>> > problems, so I decided to reboot.
>> >
>> > After the reboot I found that Cygwin had some basic problems.  I
>> brought up
>> > a mintty window (C:\cygwin64\bin\mintty.exe -e /bin/bash --login) and
>> the
>> > prompt looked odd.  It wasn't the PS1 value that I set in my .bashrc. It
>> > also seemed to be saying that my current directory was "/", which is
>> not my
>> > homedir.
>> >
>> You might want to read the section in the cygwin user manual, especially
>> https://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping
>>
>> If you don't have /etc/passwd or /etc/group, cygwin will generate
>> DOMAIN+USER entries dynamically each time you start cygwin (or per-boot)
>> if you have cygwin processes started at boot.  The /etc/passwd and group
>> files do not exist by default.
>>
>> If you want consistency -- same user names+id's with each boot and
>> MS-Win compatible names, you may want to create /etc/passwd
>> and /etc/group using mkpasswd, mkgroup and hand tuning.  It isn't
>> suggested for most users, but it may be something you want.
>>
>>
> I would most like to understand what changed to make this suddenly start
> happening.
>
> Also note the following:
>
> $ mkpasswd -u <myuid> -d
>
> <myuid>:*:2993517:1049089:U-ITSERVICES\<myuid>,S-1-5-21-2057499049-1289676208-1959431660-1944941:/home/<myuid>:/bin/bash
>

Well, I guess I've managed to resolve this, but I would really like to
understand why I had to do what I did.  I basically ran both mkpasswd and
mkgroup, passing "-d -c"  and writing the output to the corresponding
passwd or group file, and then rebooting.  It now appears to work just as
well as it did before.

I've been running this Cygwin installation for a long time on this laptop
without any problem like this.

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

