Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Process::Sys.setresgid

Process::Sys.setresgid(rid, eid, sid) → nil

Sets the (group) real, effective, and saved user IDs of the current process to rid, eid, and sid respectively. A value of -1 for any value means to leave that ID unchanged. Not available on all platforms.

See also .setregid .setresuid .setgid .setreuid also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1