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

Reply via email to