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.setresuid

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

Sets the (user) 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 .setresgid .setreuid .setregid .setrgid also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1