Skip to content

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

class method

Process::Sys.setreuid

Process::Sys.setreuid(rid, eid) → nil

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

See also .setresuid .setrgid .setresgid .setruid also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0