Re: group '545' does not exist ?

Andrey Repin via Cygwin <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.