Add /bin/newgrp command. That command allows to run a new command in a different group.
Windows has this capability, as demonstrated by SFU, Cygwin, MSYS2.
This can easily be implemented by taking a sid of a group from the thread token, and set it via SetTokenInformation(tok, TokenPrimaryGroup, ...)
Add /bin/newgrp command. That command allows to run a new command in a different group.
Windows has this capability, as demonstrated by SFU, Cygwin, MSYS2.
This can easily be implemented by taking a sid of a group from the thread token, and set it via
SetTokenInformation(tok, TokenPrimaryGroup, ...)