delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/04/04/15:48:14

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A2083858416
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1680637649;
bh=bkCx/MOYDX/mXSPvezRBPeMikveNUmc868Cwj/AZhr8=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=QTqBm5B4aqUrJy3Te/DQV+9QRMFlvMGiw4AA+h+fhtH9rCh9UdqAWfq0rCAOp990V
sV5hXghK/avkRuqQELDlxFi6ofW6T9C8a8Qpv9zuITArakF1valtPUyWDMW9F7vbDd
7Jzuv/ckMRqk2wBaJUA5SK3VHQ2lvUCzdB75G3c8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E951A3858C52
X-Authority-Analysis: v=2.4 cv=XZqaca15 c=1 sm=1 tr=0 ts=642c7eaa
a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17
a=daUBqIKCqRiNkvBL:21 a=IkcTkHD0fZMA:10 a=zs-GBwa-pOLrpf8Lu1IA:9
a=QEXdDO2ut3YA:10 a=wp1TVmfXWAOP7OSarnb1:22
Message-ID: <fb79d3f4-ef1e-cc9e-1596-6d76a8b73dfe@Shaw.ca>
Date: Tue, 4 Apr 2023 13:46:49 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Subject: Re: Mintty terminal crashes after changing the default home via
nsswitch.conf and launch in a new profile in Windows 11
To: cygwin AT cygwin DOT com
References: <CAJ_58ioyu9bDq_1xxRSfOTnG=D3Fwev3m87SiCds5B8iCcEgBA AT mail DOT gmail DOT com>
Organization: Inglis
In-Reply-To: <CAJ_58ioyu9bDq_1xxRSfOTnG=D3Fwev3m87SiCds5B8iCcEgBA@mail.gmail.com>
X-CMAE-Envelope: MS4xfPNyf9ZQwSGYBlyO11nlq97Ch0yJH+8KbtuXuRd1VRdHoDf4wIzxGwlgNA48xv3FT14L0nlMn9qTdckawULrLqYjeJRHzqyCgVtXnPzrPAkiGZujyDwq
wXCezVd2O9IXkORESffy8ppy77b0dXv1iO8Qianu9uvK1hylgcb3TLvBpk2S1BR5yq1b7TgP6MgJBC1jIGKn4NvsWfzy+le7b/+K0sqzNt4NoNHqTso+g9TI
X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, NICE_REPLY_A,
RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: <https://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: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>, Yuta SUZUKI <suzuyu1729 AT gmail DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 334JlrbD032764

On 2023-04-04 09:13, Yuta SUZUKI via Cygwin wrote:
> I am recently setting up the computer room of my faculty
> and then encountered the following issue:
> Short description:
> Change the default home directory via
> /etc/nsswitch.conf
> and make a new Windows user.
> Login to the new user (and do not logout) and launch cygwin.
> After opening another application's window, e.g. Explorer,
> and try to switch the focus between the cygwin window and the other window.
> After once or twice of switch, switching is not smooth
> and both the cygwin and the other application seem freezing.
> (Still we can launch powershell to restart the machine.)
> Procedure to reproduce the issue:
> 1. Login as an administrator.
> 2. Install cygwin with the default configuration.
> 3. In C:\cygwin64\etc\nssswitch.conf, replace
> # db_home:  /home/%U
> to
> db_home: /%H/cygwin

When you change this field from the default, it is up to you to understand and 
support the setting.

This setting example is only a suggestion, not meant to be used verbatim, and 
means that, for each Windows account at setup or login, under the user's Windows 
home directory, you will create a literal "cygwin" subdirectory, to be mounted 
by Cygwin at the user's Cygwin "login" as the user's Cygwin home directory 
/home/$USER.

Cygwin startup is probably waiting for an automounter to provide the directory 
here, just as if this were a Samba, NFS, or Unix network mount, or a Windows 
remote profile mount set up under 
{$USERPROFILE,$HOMEDRIVE$HOMEPATH}/AppData/Remote/.

Given the use of "cygwin" as a schema also here, this is possibly a poor 
example, which could be better documented.

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

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

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