DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 65JFowTk2557676
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 65JFowTk2557676
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=HctDRc9m
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D71234BAE7CC
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1781884257;
	bh=aHEy29YWhs2HQzSMUzQZ95HicJhy75qkAaycq0JEKA0=;
	h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=HctDRc9m6WnOt6A2+y0m+zZ4qZ1rjseazaq2dmBMloVhKG12IoRo1HHc76pU4uOYe
	 5Aha2tsTo1LFmtN+WGLbCcixk3i1N3ufcjHm9mRu9Wq115WGK0BcLpOy1apZ6VTN0k
	 rmmo+Ch99ErfGAg11Cz53IHL68w0VyxwOxU3hVOQ=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E48CA4BAE7D2
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E48CA4BAE7D2
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781884209; cv=none;
 b=pYmSkq8qRFGgmL940U7qqxIRaoaBP96IcX2OJ4LhEmrz+xIxdzmH50dUoOIpshzZnFaFfu5opVFbtXwlLSWaPWZld7njk2mFCFKZj7mDp+B4UnCM/FG7B7AaLiOz4dUsCA4qmyDQVYgZxEiSEPxNOfby4A2MR8bnkCEPIuUHHw4=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1781884209; c=relaxed/simple;
 bh=TV/8ipEQM6O/edPFRFpYJlhcfWNvtkDJqRl7kI8EfSQ=;
 h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
 b=Mz5NDTpRiHljJbzX9Klk5WYVNWjTUWhoZgXYAh41TeE3iyjazfFJriMAWKv/aLa46WDDFb8x8ickK8GLeShkJB1AQn2uM1SzpwuutWOFNNWtLJILGjm6NGMNvcoYI2BzsDX7Lw6mYCGOcTx7qzoOWc+zXvKWMrFK95YC5wWSl+w=
ARC-Authentication-Results: i=1; sourceware.org;
 dkim=pass (1024-bit key, unprotected)
 header.d=yandex.ru header.i=@yandex.ru header.a=rsa-sha256 header.s=mail
 header.b=UnmjZPKl
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E48CA4BAE7D2
X-Yandex-Fwd: 1
Date: Fri, 19 Jun 2026 18:48:04 +0300
X-Mailer: The Bat! (v11.4.3) Home
Message-ID: <1383126285.20260619184804@yandex.ru>
To: Mark Geisert <mark@maxrnd.com>, cygwin@cygwin.com
Subject: Re: Fwd: BUG?!: Running cygserver switches egid/primary group to
 4095(CurrentSession)
In-Reply-To: <aa2381ad-c609-40a3-b643-7e67b3b66e1d@maxrnd.com>
References: <CAPJSo4W-MmBMjVDJg3BA1dqJQ_u59srz6+_-3Uti5ktebZ7-Mw@mail.gmail.com> 
 <CAPJSo4VsSq=a7dSGa17nfy6CEdTfvJuSu_1NT-dGKK+xXSwLaw@mail.gmail.com>
 <CAPJSo4V23W3AJHYhtce7hbrm=QtE+vgBqLu8rf+qp63oNuXTyw@mail.gmail.com>
 <f3ef6d4e-dc1a-48ad-8711-b57d8b614fbf@maxrnd.com>
 <1341987082.20260617203636@yandex.ru>
 <aa2381ad-c609-40a3-b643-7e67b3b66e1d@maxrnd.com>
MIME-Version: 1.0
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
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>
From: Andrey Repin via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Andrey Repin <anrdaemon@yandex.ru>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

Greetings, Mark Geisert!

> Hi Andrey,

> On 6/17/2026 10:36 AM, Andrey Repin via Cygwin wrote:
>> Greetings, Mark Geisert!
>> >> On 6/8/2026 3:35 PM, Lionel Cons via Cygwin wrote:
>>> [...]
>>>> If I run without cygserver id -a returns
>>>> $ id -a
>>>> uid=197620(lcons) gid=197121(Kein)
>>>> groups=197121(Kein),197615(docker-users),545(Benutzer),559(Leistungsprotokollbenutzer),4(INTERAKTIV),66049(KONSOLENANMELDUNG),11(Authentifizierte
>>>> Benutzer),15(Diese Organisation),113(Lokales
>>>> Konto),4095(CurrentSession),66048(LOKAL),262154(NTLM-Authentifizierung),401408(Mittlere
>>>> Verbindlichkeitsstufe)
>>>>> but if I start cygserver each new session has gid=4095(CurrentSession)
>>>> as egid/primary group for new terminals
>>>> $ id -a
>>>> uid=197620(lcons) gid=4095(CurrentSession)
>>>> groups=4095(CurrentSession),197121(Kein),197615(docker-users),545(Benutzer),559(Leistungsprotokollbenutzer),4(INTERAKTIV),66049(KONSOLENANMELDUNG),11(Authentifizierte
>>>> Benutzer),15(Diese Organisation),113(Lokales
>>>> Konto),66048(LOKAL),262154(NTLM-Authentifizierung),401408(Mittlere
>>>> Verbindlichkeitsstufe)
>> >> I'm unable to reproduce the issue, but I'm a little unsure I have the
>>> complete list of steps to do so.  Let's start with these questions:
>> >> Is your system part of a Windows domain?
>> >> How exactly are you starting cygserver?
>> >> When you say "each new session" do you mean opening a new Cygwin Terminal
>>> that presents the usual bash+mintty user CLI?  Or is it some other method?
>> > I think I've observed a related issue.
>> I have /tmp set up as user mount, and from time to time, when I log in, it
>> points to %WinDir%\TEMP rather than to the current user's %TEMP%, in turn
>> making many tools dysfunctional.
>> > I have to restart cygserver for it to work.

> That's interesting.  Do you also have cygserver set up to start on Windows
> boot?  And could you please paste your mount /tmp command so I can set that up identically?

Yes, of course, cygserver is started at boot as a service.

Here's full fstab

>> # /etc/fstab
>> #
>> #    This file is read once by the first process in a Cygwin process tree.
>> #    To pick up changes, restart all Cygwin processes.  For a description
>> #    see https://cygwin.com/cygwin-ug-net/using.html#mount-table
>>
>> none /mnt cygdrive noacl,binary,nouser,posix=0 0 0
>> W:/ /run ntfs acl,binary,nouser,posix=0 0 0
>> none /tmp usertemp binary,user,posix=0 0 0

W: is a small 8MB ramdrive, if you are interested.

Though, I just realized that I should probably set up /tmp as a per-user
mount. (Through fstab.d)
Please advise if so.


-- 
With best regards,
Andrey Repin
Friday, June 19, 2026 18:43:32

Sorry for my terrible english...


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