Sets the real and effective group IDs. Format #include <unistd.h> int setregid (gid_t rgid, gid_t egid);