public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Run explorer.exe with Cygwin newgrp(1) - same user but different primary group
@ 2024-05-29  3:35 Dan Shelton
  2024-05-29 13:39 ` Bill Stewart
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Shelton @ 2024-05-29  3:35 UTC (permalink / raw)
  To: cygwin

Hello!

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?

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Run explorer.exe with Cygwin newgrp(1) - same user but different primary group
  2024-05-29  3:35 Run explorer.exe with Cygwin newgrp(1) - same user but different primary group Dan Shelton
@ 2024-05-29 13:39 ` Bill Stewart
  2024-05-30 22:46   ` Dan Shelton
  2024-05-30 23:20   ` Dan Shelton
  0 siblings, 2 replies; 5+ messages in thread
From: Bill Stewart @ 2024-05-29 13:39 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 414 bytes --]

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.

Bill

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Run explorer.exe with Cygwin newgrp(1) - same user but different primary group
  2024-05-29 13:39 ` Bill Stewart
@ 2024-05-30 22:46   ` Dan Shelton
  2024-05-30 23:20   ` Dan Shelton
  1 sibling, 0 replies; 5+ messages in thread
From: Dan Shelton @ 2024-05-30 22:46 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Run explorer.exe with Cygwin newgrp(1) - same user but different primary group
  2024-05-29 13:39 ` Bill Stewart
  2024-05-30 22:46   ` Dan Shelton
@ 2024-05-30 23:20   ` Dan Shelton
  2024-05-31 13:36     ` Bill Stewart
  1 sibling, 1 reply; 5+ messages in thread
From: Dan Shelton @ 2024-05-30 23:20 UTC (permalink / raw)
  To: cygwin, ms-nfs41-client-devel

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.

How can someone run explorer as Admin then?

FYI winsg -c eng4grp -c 'explorer /nouacheck /separate' does not work.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Run explorer.exe with Cygwin newgrp(1) - same user but different primary group
  2024-05-30 23:20   ` Dan Shelton
@ 2024-05-31 13:36     ` Bill Stewart
  0 siblings, 0 replies; 5+ messages in thread
From: Bill Stewart @ 2024-05-31 13:36 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

On Thu, May 30, 2024 at 5:21 PM Dan Shelton wrote:

How can someone run explorer as Admin then?
>

I believe the point of the design was to prevent exactly that (as already
noted, for security reasons).

Bill

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-31 13:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-29  3:35 Run explorer.exe with Cygwin newgrp(1) - same user but different primary group Dan Shelton
2024-05-29 13:39 ` Bill Stewart
2024-05-30 22:46   ` Dan Shelton
2024-05-30 23:20   ` Dan Shelton
2024-05-31 13:36     ` Bill Stewart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).