A somewhat related problem
A somewhat related problem
Posted Nov 20, 2014 10:21 UTC (Thu) by giggls (subscriber, #48434)Parent article: The trouble with dropping groups
There is another Problem with traditional group handling in Linux I came across recently.
It is the lack of a system call to change the primary gid of a process in a way the suid utility sg does.
I consider it somewhat broken, that sg has to be suid at all.
It is at least very inconvenient that it is impossible to do inside a binary without an ugly wrapper script or execing itself via sg.
Sven