Re: group '545' does not exist ?

Marco Atzeri via Cygwin <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
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

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

Regards
Marco



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