DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5BEBKts21206063
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 5BEBKts21206063
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=ZYarf5xa
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29BEE4BA2E24
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1765711254;
	bh=CJt7NSj1tHdy6hLhvwsPjF+JMB6PXZZvBFjyo8KavHU=;
	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=ZYarf5xa2pgl1r4gp4PyOCKs5BlQiKRXSbW2dhr/c6DRjeB+C2SUdZ32s5CV0WpEY
	 Jmaqa9k2anMkLSfAEXCklR7ScVVLo0E6xpTbuQcu8KP7yVlYymIJqSeuTf+NyPeHt8
	 eIo/A2QZhwBXQoDENk+8mYmSXq8UhXJL4ctc0b/U=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9B9C44BA2E21
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9B9C44BA2E21
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765711203; cv=none;
 b=LcicAZhm+Cm7mMr7A5RMkD/3kJtS6LEBc7svjjGj3w9mA0LsDiFIdyYTQcUF0PBmwm1DthC5Jw2oUsZdrm+Zu7qkLFSujP/yHmbZuo5uIXm2wzbGsYv9+YE2c5ugdw3J5eAH8LhoGjTi9u9ADUi/D81WaAbQFEAtZqEpRC4wX+g=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1765711203; c=relaxed/simple;
 bh=/TWEhd8bBXQ68vmMDvr3Y9miU1xSbGNtiwNE7MirwTU=;
 h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
 b=WXGM4q1vv/VkhfR/TIpbf/ql3SDpH3OtvsjEN+xxgMmPl13/Fpfq/UwczvAPwgMDGwEipKIdTEzedQIOoVv3otbUh7/LStqRWlQ4R3n1X0mtgJVMPYZm2PKouWYs8Vml5wPcB2d9Z81e18YzH6VPl4ALCv0e4VJ71f0WySv0oGk=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B9C44BA2E21
X-Yandex-Fwd: 1
Date: Sun, 14 Dec 2025 14:05:45 +0300
X-Mailer: The Bat! (v11.4.3) Home
Message-ID: <14364434.20251214140545@yandex.ru>
To: Marco Atzeri <marco.atzeri@gmail.com>, cygwin@cygwin.com
Subject: Re: group '545' does not exist ?
In-Reply-To: <0735a463-7382-4374-8b94-b2fe616b5986@gmail.com>
References: <3a9f1d9a-d363-4617-bc24-e2b5aa4d27e9@gmail.com> 
 <CAKAoaQntTmvE8EbKCiJMcySrhHG91a947A8WTvKkv3H6LzhsHg@mail.gmail.com>
 <48e6fb4c-2341-4f43-b158-d70a9b391f91@gmail.com>
 <de6f8c31-2e4d-48e3-af61-6e6a2b640f79@dronecode.org.uk>
 <a3be4a15-ff9b-4056-9982-b991eed1a430@SystematicSW.ab.ca>
 <89866400-5131-4790-aa55-542e451ab197@gmail.com>
 <aTLSsHtxB_8ssxWU@calimero.vinschen.de>
 <aTMkqp9bwoz7E0-X@calimero.vinschen.de>
 <aTMpECmWwfXmUE7Q@calimero.vinschen.de>
 <0735a463-7382-4374-8b94-b2fe616b5986@gmail.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="utf-8"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 5BEBKts21206063

Greetings, Marco Atzeri!

> On 05/12/2025 19:48, Corinna Vinschen via Cygwin wrote:

>>> Right now, our newgrp is commandline compatible with Linux' newgrp from
>>> shadow-utils:
>>>
>>> - A single '-' reinitializes the environment.
>>> - The group must be given as name, not as GID.
>>>

> Hi Corinnathe current version of newgroup is NOT doing so.
> It spins a new shell process

IIRC, that's the only way to create a new environment in Windows by an
external process.
If you take a look at the exec's implementation, it also starts a small code
to manage the spawned process.

> $ pstree
> ?─┬─?───sshd
>    ├─mintty───bash───pstree
>    └─ssh-agent

> $ newgrp - Users

> $ pstree
> ?─┬─?───sshd
>    ├─mintty───bash───bash───pstree
>    └─ssh-agent


> Noticed as it is very easy to bomb the enviroment.


-- 
With best regards,
Andrey Repin
Sunday, December 14, 2025 14:02:50

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

