delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/04/04/22:58:31

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8EB47385840C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1680663471;
bh=A3qNAdPUFinTPgDDSSl3CZulE90UXf0Xn03XcSxa5sA=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=V9YAY+EiqYcL6gLUDamUSndC/kFomek+sf/HKkspjQlHbAox9ZCblX0yOf55aUMr8
gqCxdMwarIwbYA0Z/ATIrONP2ZuLNe0/Lit+m1MzHdfXjO9EJ+SKn1vlPBRH2GIcbo
1HtKFz17v8PWQxZrr6Ywv6nVTd3gNsV7OWs3tZi0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 531AE3858C50
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112; t=1680663429; x=1683255429;
h=content-transfer-encoding:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=t4/apG5n2js9U4nekPjN9XOLR0t4wOQK+SWrk8reock=;
b=LrEbKkfLCGtX3GoJdHIczl2aogpgkJlHTCrvmvXOTxw35Z1FcBYhEG22o6zO95qZB0
sO8ll4gmEkaYGjCGB+cGDnbr/3BarkfydYfY7JqiQbESEnsIKiVPbGpXvKdPtftCRadD
WlTuo+/VOGd60LICjwP+Erlr+7P6/EYKiN6Uy44075TbSMHLx8a64KcZyJQOHT7VyBlT
v8E+l9VZ3pW+cqNCKEfNJUB8WzcuqFAgIX/B41FG2dUq/koO6bTgupsndm+EnbKnkcme
J7QKNGZVq4alBk3QDei1w6BztwpQiT3lzc1dmec7rnWC+2HgQXg9+ArjNGluwx3o56zN
bEWQ==
X-Gm-Message-State: AAQBX9cR7We1V9XyWSVSqRYK8lYAM559l//jv0Vglv/J8cRIja8+7gIN
TiGdmbilRZAY22jmOZ2QbxZKDsj3hDjCE9bMqGM/3qgtg1M=
X-Google-Smtp-Source: AKy350YChzKqBlhSV8qSJm/dfSzTYxC3tG1wtQ3vQ1WgoDQMyLyBJadtY78HinZQmMJxkhsdX1QoqzeSSwMJ2acUYVo=
X-Received: by 2002:a17:907:78cf:b0:947:9f2a:8ca0 with SMTP id
kv15-20020a17090778cf00b009479f2a8ca0mr778605ejc.10.1680663429238; Tue, 04
Apr 2023 19:57:09 -0700 (PDT)
MIME-Version: 1.0
References: <CAJ_58ioyu9bDq_1xxRSfOTnG=D3Fwev3m87SiCds5B8iCcEgBA AT mail DOT gmail DOT com>
<fb79d3f4-ef1e-cc9e-1596-6d76a8b73dfe AT Shaw DOT ca>
In-Reply-To: <fb79d3f4-ef1e-cc9e-1596-6d76a8b73dfe@Shaw.ca>
Date: Wed, 5 Apr 2023 11:56:57 +0900
Message-ID: <CAJ_58ir7cFbHcUeUoU3yaGT+zR7yUU9ehcerA4-voG3FtAFe=Q@mail.gmail.com>
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
X-Spam-Status: No, score=3.1 required=5.0 tests=BAYES_05, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF,
FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Level: ***
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-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: Yuta SUZUKI via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Yuta SUZUKI <suzuyu1729 AT gmail 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 3352wGxL014239

Brian,

Thank you for your reply.
But I can't get the point so much...

> This setting example is only a suggestion, not meant to be used verbatim, and
--- Yes. In my lab, I use another path for the default home. This is
just a simple test configuration.

> 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
> ...
---- I think that usually cygwin automatically makes the directory
assigned as the default home in nsswitch.conf (and indeed it does).
I tried the same experiment with making C:\Users\test\cygwin manually
before launching cygwin,
but the same crash is reproduced.

> When you change this field from the default, it is up to you to understand and support the setting.
---- Well, I know that I want to assign the home directory
automatically to every user of my lab.
I don't know the internal structure of cygwin and so what I can do is
to only announce
"Do not use cygwin at your very first sign-in to the machine.
Re-sign-in before launching cygwin".
But I think this is a bit ridiculous...

> Cygwin startup is probably waiting for an automounter to provide the directory here,
---- Actually, in my experiment, cygwin does make the directory
C:\Users\test\cygwin
and even I could output cygcheck to C:\Users\test\cygwin\foo.out (or
/cygdrive/c/test/foo.out).
The problem is only in the crash of the window system.

Addendum:
Setting Windows environment variable HOME to be /cygdrive/c/users/test
works without the issue,
but it does affect another application in my lab as documented in
cygwin's users guide.

Yours,
Yuta Suzuki

2023年4月5日(水) 4:46 Brian Inglis <Brian DOT Inglis AT shaw DOT ca>:
>
> 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



-- 
鈴木 雄太
立教大学 理学部数学科 助教
Yuta Suzuki
Department of Mathematics, Rikkyo University
suzuyu1729 AT gmail DOT com

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