setgid (2) Linux Manual Page
setgid – set group identity Synopsis#include <sys/types.h> #include <unistd.h> int setgid(gid_t gid); Descriptionsetgid() sets the effective group ID of the calling process. If the calling process is privileged (more precisely: has the CAP_SETGID capability in its user namespace), the real GID and saved set-group-ID are also set. Under Linux, setgid() is implemented like the POSIX…
