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.setruid
Process::Sys.setruid(user) → nil
process.c
View on GitHub ↗
static VALUE
p_sys_setruid(VALUE obj, VALUE id)
{
check_uid_switch();
if (setruid(OBJ2UID(id)) != 0) rb_sys_fail(0);
return Qnil;
}
Set the real user ID of the calling process to user. Not available on all platforms.