DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 44UMlZ3X2288406
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=b5zjc+bI
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB2BA3858417
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1717109254;
	bh=4rMn5j9cWPPnCknixVVoQbFKejRCgadKU+AYHAXsABE=;
	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=b5zjc+bI+AU4MZDknmCjDLsLnzztpEHWJclw/+2bfTBwfqoGNNW1m6cCmvBlOzHAk
	 625RlZGus5vu+FxYiP1xoNOsT55UH6aClEqagOROmR/MSATmmzjuw+Rk57OYzlDOOS
	 /0SP09QwrTtkBAMNbZ+fBLOVyHYUy07ZDyDR/BsE=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E58E3858D29
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2E58E3858D29
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717109203; cv=none;
 b=qzje2H1QIZQDt9y1Z0aQvyuHc3v3s6Jzh/9gKgGSpkpZ0odYGIRGwVWXBBgiUF2ig7m3c7VyA5Ch49MI0o+9+AuhnQBdcB5HQ4l3fbLJESWGeKOqfb3qj2XenViak4e1gza5PVS+R9ZNPbtsVBHxGbIG1S4MH4qH/splrV9dCGo=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1717109203; c=relaxed/simple;
 bh=4bV096/wb9XP1+F3ZH/vzZP4jTSrY7BULnSx1VLPkdI=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=DKQ5pE+YaJB0qCoI78iwIL4ImS2JbzuvhJ2kJEWMiGDRjF0vZ51ylVjk2cgQxRQt06FopbUTFzL96p35DoB33p1xaVGdBQbcZE3MJtr6UUXs7OaOoHrhDvrfY0SkGicCta/fYtnxKQfbWegDogrtZ0FuSl1z2cVQuHudAlvH5fA=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1717109199; x=1717713999;
 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=4bV096/wb9XP1+F3ZH/vzZP4jTSrY7BULnSx1VLPkdI=;
 b=For+CXyMyc2kq5htje4JRQyk7r0PxF/D7BMhgv3p6hZxyCSIbsbSz3xcEFiqAJuxtp
 ehkzQhb9kaAWON9kRkKpqffuIRrGEkCAglkP2a0HWXzYzAFk/4ZN399jA+JdTQ/FXvfU
 UKTbinKA/04qu9Z3M3F4ewlQruiN/f/juZ/7KFRnCag9+5rIxNDf7cG+32QjUMgnXyQe
 DxXCLuwGcSz+HavEKH1M8r7Htxkw/CSw0jLt69HWnEDBshpzBqQGLo/U5Vcs0AFSkMwd
 xMCVYCZRqGZKsskc/jI1lN5/Ji0fsDsMMMMVSlz1FsEH+xxysGU4Bfs0WV8RsX/clbj6
 m1BA==
X-Gm-Message-State: AOJu0Yzrc2KnewhGqGCXt+/LAZ2WZVR094sEXKy5NadsRqZawYSUs1rB
 +9xTR+fYGirA3BY9PYInRcYmA2RBn03qMk6NzJ1qQU3C49I3zuWA2sCwIGJBk3FHWsLxwBieVb+
 BgT7v8T+17fQRm5nK+gV+QmZKAc9uUw==
X-Google-Smtp-Source: AGHT+IESylnHTLrg99/jdBONbSmDlYTKlyC5KhibdFqRjY1q92LlSWD5X2mEKGODyKJjHVimRqLTKfG6arraQ7LLVFs=
X-Received: by 2002:ac2:4822:0:b0:528:ce56:96d with SMTP id
 2adb3069b0e04-52b896c15e3mr11677e87.50.1717109198906; Thu, 30 May 2024
 15:46:38 -0700 (PDT)
MIME-Version: 1.0
References: <CAAvCNcBhRXTrARcE0azC4s=E-AEAVxecPBLswO0p9TE0FfhA0g@mail.gmail.com>
 <CANV9t=RuVp=32A5VNm6R9yO3eY=auVfHywhwPBiCWmsSLO+XtQ@mail.gmail.com>
In-Reply-To: <CANV9t=RuVp=32A5VNm6R9yO3eY=auVfHywhwPBiCWmsSLO+XtQ@mail.gmail.com>
Date: Fri, 31 May 2024 00:46:12 +0200
Message-ID: <CAAvCNcB9zpw0sfh-yYQSvDBixhhr95QFiJqpHDpNdaO2iVCY7Q@mail.gmail.com>
Subject: Re: Run explorer.exe with Cygwin newgrp(1) - same user but different
 primary group
To: cygwin@cygwin.com
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE 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@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
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: Dan Shelton via Cygwin <cygwin@cygwin.com>
Reply-To: Dan Shelton <dan.f.shelton@gmail.com>
Content-Type: text/plain; charset="utf-8"
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 44UMlZ3X2288406

On Wed, 29 May 2024 at 15:41, Bill Stewart via Cygwin <cygwin@cygwin.com> wrote:
>
> On Tue, May 28, 2024 at 9:36 PM Dan Shelton wrote:
>
>
> > Does anyone know how to run Windows explorer.exe with Cygwin
> > /bin/newgrp, so all new files created by explorer.exe use that new
> > primary group, and all programs launched by explorer.exe use that same
> > primary group?
> >
>
> As I understand it, Explorer always starts unelevated as the current user.
> This is by design for security reasons.
>

But does WinSG elevate the process? I thought it just takes an
existing group from within the token, and sets it as the primary
group.

Dan
-- 
Dan Shelton - Cluster Specialist Win/Lin/Bsd

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

