X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 68E7E3959E5D
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
 header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
 spf=none smtp.mailfrom=systematicsw.ab.ca
X-Authority-Analysis: v=2.4 cv=Ac10o1bG c=1 sm=1 tr=0 ts=61095f8b
 a=T+ovY1NZ+FAi/xYICV7Bgg==:117 a=T+ovY1NZ+FAi/xYICV7Bgg==:17
 a=IkcTkHD0fZMA:10 a=uYT-Tk0qkVT609LjNaIA:9 a=QEXdDO2ut3YA:10
To: cygwin@cygwin.com
References: <DM8PR09MB70959D0E3923BE1BE86F7285A5ED9@DM8PR09MB7095.namprd09.prod.outlook.com>
 <YQenbE7ZbwzzcdQM@calimero.vinschen.de>
 <DM8PR09MB70955B8F8E1A180504AE0718A5EF9@DM8PR09MB7095.namprd09.prod.outlook.com>
 <YQgdnllE3OoKkVOm@calimero.vinschen.de>
 <DM8PR09MB7095EEA62C0E5D51C704CAA5A5EF9@DM8PR09MB7095.namprd09.prod.outlook.com>
 <DM8PR09MB7095E8E61444B71762F84138A5EF9@DM8PR09MB7095.namprd09.prod.outlook.com>
 <771e99c7-19c5-df67-abf2-fefde0e4d7b5@SystematicSw.ab.ca>
 <DM8PR09MB70951F494B3C864A5D9F716EA5EF9@DM8PR09MB7095.namprd09.prod.outlook.com>
 <57515f66-8c88-5078-8726-4883f8e1e325@SystematicSw.ab.ca>
 <DM8PR09MB70959B56526555CB5512B258A5F09@DM8PR09MB7095.namprd09.prod.outlook.com>
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Organization: Systematic Software
Subject: Re: Unable to start Cygwin64 terminal after password change
Message-ID: <63cd211e-8a4d-bfa6-5a63-aa0621af31b4@SystematicSw.ab.ca>
Date: Tue, 3 Aug 2021 09:23:55 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.12.0
MIME-Version: 1.0
In-Reply-To: <DM8PR09MB70959B56526555CB5512B258A5F09@DM8PR09MB7095.namprd09.prod.outlook.com>
Content-Language: en-CA
X-CMAE-Envelope: MS4xfHSJIcMzlxASF4zBsql5xqF4RTSq8IhWKInk0hFvNF0YROwHm2K6tLNcAVQpLQbHA5GidMmiteMMU77X/woeHUaAa0Kq7rO+9mQI3QCX/2R3U4nAFCy4
 gULtU9suUSKQvB+BHRkdk0ghZsYKYyZrEMlErNN/pVLl/gFx4br6KoH6M7FK8S3FMff9s10vJiXfGWNA3CQZvs+pxwGPUCqQTek=
X-Spam-Status: No, score=-1161.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL,
 RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE,
 TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: <https://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: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: cygwin@cygwin.com
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On 2021-08-02 19:47, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote:
>> How do you install and upgrade Cygwin and Packages?
> 
> Why? I wasn't upgrading anything this time. But when I need to 
> upgrade, I create a ticket for admins to stop cygserver, then I
> update all the files, and then I create a ticket to restart the
> service. (BTW, Setup won't be able to complete and update cygwin1.dll
> if anything of Cygwin is still running -- so it's hard to miss.)

You were "upgrading" your domain account AD data cached by cygserver.

If access to make changes to executables live fails, Cygwin Setup will 
arrange for the changes to be made when the system next restarts.

> Everything worked prior to my password change (and that was the
> _only_ thing that I was changing, not packages). After that
> I was unable to start Cygwin Terminal (it blinked "This account is 
> currently not available" at me, and closed immediately).
> I rebooted the machine, to no avail.

As Corinna suggested, your system may be set up for "Fast Restart" or 
whatever it is now labelled, which may play "fast and loose" with the 
idea of terminating and restarting system, service, and user processes.

> "cygcheck" was showing broken output for one of my secondary group 
> name. "id" was showing numeric user / group (nothing broken, though).
> "strace" for "id" showed it consulted cygserver. >
> When admin stopped cygserver, right away I was able to start the 
> terminal again (without even any need to re-login, let alone to
> reboot). >
> It was all described previously in my emails to this list.
> 
> The thing is that I _need_ cygserver because I use shared memory.
> So I will have to ask admin to restart, eventually.

Cygserver also caches Cygwin process and user account data, including 
local SAM and *domain* account data (speeds up all AD data accesses), so 
it is possible that could mess you up.

You might want to make your admins aware of possible issues, and any 
time you or they are going to change any domain data including accounts, 
passwords, or structure, that could affect or that matter to Cygwin 
processes on that system, tell each other, so you can stop Cygwin 
processes and they can stop cygserver, before any changes, and restart 
cygserver after.

-- 
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.
[Data in binary units and prefixes, physical quantities in SI.]

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