DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 552La3Gb3243291 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 552La3Gb3243291 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=Xk7d5jEP X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 901F63857738 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1748900161; bh=4uxCM+cqQkVIDOSzpRS0htoVLiGXmqSOysyTJTXjksw=; h=Date:To:cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=Xk7d5jEPJoBeEuxvul2IYaEULWaFMHfBgCaf3dJmvApFdnlUG/jPWOUVdpuauYj5W iNeI2PrdqYTPslKdrYH24Q1YXwnUaylTYDtTS0EAsR1rEcNae/0nAcmlDfQfkb+Lbf nA/GVJp+4c9ewmWJPdCnVNEX6ym9ZF+umFLj/5So= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 58646385780D ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 58646385780D ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748900091; cv=none; b=KJ8siE7bDv6xhdjtW3+6YX3lAXwbzDHC841sL1OitsP3ayWYRIVmqi8kWgcTtwdFuUd54ZKLY6vd2sS6ILmtnYKHam1wx3fMKAW86g/ZidnNf/SaQx55Q7SgXBpWkkWylzowzmsMn+ms7g5U4L+/7m2AzXPpJC3YpX48OYZDnck= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748900091; c=relaxed/simple; bh=cy5K4NDfiBVFzsGrdlQZXh1LUBLba1p65zfmETjAe/k=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=ezC/OQimXlI1kbkl7n/fq9E7p9O2oK6H499Dtn96Oe7SOdax7NOSqeDxOxnfOa2aaUDC3PZ/z5UEqHjSGNhJVvilMfun+GEwfMy4xiK9KHjT84sfMBdgDo2RD1M7YoJryuq3kZL0f/+dzgTdYxl1DITLLXnfeAntIri3n1r5X4U= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58646385780D X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Date: Mon, 2 Jun 2025 23:34:47 +0200 (CEST) To: Robert Fensterman cc: cygwin AT cygwin DOT com Subject: Re: cygin 3.6.2-1 under Win11 24H2: Cannot launch: no available terminals In-Reply-To: Message-ID: <0c47bb62-84e1-0828-7e03-c0e7b7583e11@gmx.de> References: <145533698 DOT 20250528134347 AT yandex DOT ru> MIME-Version: 1.0 X-Provags-ID: V03:K1:ihLw4ZFIEvPcIdvSNaDyyu5mfWvY4sgnlMNLI4tbsT7MCaDwL6i 0Rdy+12++Qj5fq+uC/o1K3CggzH4i3WkCxWcNO4uH82qSwmP4uRuPUmGJoxvYO1peBF21RE 3/6z+da0+JWiTmDIdoQp/CGvxfDrXM8mNrzWw++1OjINb1Ouiz/N1BJEHHVcqJIgCb999MA 9F108BuAD/w0qWj2yae+g== UI-OutboundReport: notjunk:1;M01:P0:rctLsZpmV9A=;+7IGLZobRGM/cwijAilD/vfz8Zy jGnyUEmPsUYm5pQ/AGyPJAr+bdoB36S1YOyzCGEJ7SdoR4FhfRO9CZaTalzK7tY0LQVtnicUd g8Id3319HhmsW0TQfxwTdjc3IeIXpRZC2KD3WuIA5IHo6NPFVg9gof7z9lpBWcyHElt0CgbLY 4K/lBcRM8KIiltPGAloQb6fQl5NmHWpjMRNQFa9ElNJnrSamWRhcEyFDWoWoBW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+aCMBW X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Johannes Schindelin via Cygwin Reply-To: Johannes Schindelin Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 552La3Gb3243291 Hi Robert, On Wed, 28 May 2025, Robert Fensterman wrote: > getent passwd %USERNAME% > is blank I _think_ that you are running this in a Bash, therefore you'd need to run `getent passwd $USER`. As it were, I did reproduce the issue on my end, and this command-line reports a SID that starts with `S-1-12-1`. Together with this information: > With cygwin 3.6.2-1, I can start bash directly from a CMD window (though it > can't find programs, just built-ins). > Interestingly: after that test, that and reverting back to .1, my > .bash_history permissions seem to be wrong: instead of my AzureAD user as > the owner, Windows sees some other SID as owning the file and bash (in > cygwin) can't read it (eg., up-arrow doesn't go up past the start of the > instance of the shell, where it normally goes quite a bit further back in > time). As a workaround, I've given "everyone" rwx permissions, and it seems > to be working fine. and bisecting my problem to https://github.com/cygwin/cygwin/commit/48e7d632689313106d16b0de035fb955c54492b2, the following diff (which partially reverts that commit) fixes it for me: ```diff diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 83883f9f65..795a00cc1a 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -1996,10 +1996,12 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap) if (sid_id_auth (sid) == 5 /* SECURITY_NT_AUTHORITY */ && sid_sub_auth (sid, 0) == SECURITY_APPPOOL_ID_BASE_RID) break; +#if 0 /* AzureAD SIDs */ if (sid_id_auth (sid) == 12 /* AzureAD ID */ && sid_sub_auth (sid, 0) == 1 /* Azure ID base RID */) break; +#endif /* Samba user/group SIDs */ if (sid_id_auth (sid) == 22) break; ``` Now, the commit message of that commit includes the name of the reporter, which helped me find https://inbox.sourceware.org/cygwin/pbli6jecn5go2h7heebwivkwz6xf5h2stvq5fxna4u6pql6uht AT 7xpentpxjiak/ as the original reason for that commit. That request only talked about `S-1-15-3-*`, though, and not about `S-1-12-1-*`. And the commit message makes it sound as if my SID would never resolve by `LookupAccountSid()`, but it clearly does. So I am not quite sure what to make of this finding... Should the `S-1-12-1-*` part of 48e7d63268 (Cygwin: fetch_account_from_windows: skip LookupAccountSid for SIDs known to fail, 2025-04-10) simply be dropped? Or was there another clever idea to exploit a shortcut that would side-step the need to call `LookupAccountSid()` for those SIDs and set `ret = TRUE`? Puzzled, Johannes > > On Wed, May 28, 2025 at 5:50 AM Andrey Repin wrote: > > > Greetings, Robert Fensterman! > > > > > When I try to launch Cygwin 3.6.2-1 - be it from the taskbar shortcut, > > > double-clicking on mintty.exe, or running mintty.exe from CMD - I get an > > > error message: > > > > >> Error: Could not fork child process: There are no available terminals > > (-1) > > > > > The resulting window is titled "-nologin". > > > > What's your /etc/shells and what is the output of `getent passwd > > %USERNAME%` ? > > Can you start bash.exe directly? > > > > > The taskbar shortcut is: > > >> C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico - > > > > > I ran setup this morning to update whatever had updates; this included > > the > > > base cygwin package. As last week, it warned me that there was a point > > > update; I've since downloaded that and re-run setup (without reverting > > > anything; just letting it do its normal cleanup) to no avail. I've > > attached > > > the portion of setup.log with those two runs. > > > > > I did also update several other Windows apps Windows first thing this > > > morning, before I'd tried to open a Cygwin terminal; I don't recall that > > > list including anything that should have affected terminals, but I > > suppose > > > it's possible. > > > > > Google searches suggest killing several programs (ssh, ssh-agent, bash, > > sh, > > > git, node etc.); none are running. I have tried rebooting a couple of > > > times, launching Cygwin (from the taskbar shortcut) as soon as I can > > after > > > reboot, and I still get the error. > > > > > Other terminal-ey apps work: git-bash launches and appears to work > > > normally; similarly, CMD and PowerShell both seem to be just fine. > > > > > Reverting to v 3.6.1-1 seems to work: Cygwin launches and is acting > > > normally. Updating cygwin through the current version of setup results in > > > the same error condition (and, reverting a second time is still working). > > > > > Running on Win11 24H2 (OS Build 26100.4061). > > > > > > > > -- > > With best regards, > > Andrey Repin > > Wednesday, May 28, 2025 13:20:56 > > > > Sorry for my terrible english... > > > > > > -- > Robert F. > -- 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