microsoft / node-pty

Fork pseudoterminals in Node.JS
Other
1.47k stars 239 forks source link

Suplementary Groups #684

Open jonathanbeber opened 4 months ago

jonathanbeber commented 4 months ago

Hello there,

Is there a way to set the supplementary group IDs when spawning a new terminal? I see gid is a number and not an array, so I guess that's not the right way to achieve that.

Supplementary group IDs is a common thing for emulated terminals, since users can benefit from permissions coming other groups rather than their main one.

I thought about changing the process' groups with process.setgroups but it changes the process of the current process, what means I can't change it after it was already forked.

Any suggestion is really appreciated.