class method
Process::Sys.seteuid
(::Integer user) -> nil
Process::Sys.seteuid(user) → nil
process.c
View on GitHub ↗
static VALUE
p_sys_seteuid(VALUE obj, VALUE id)
{
check_uid_switch();
if (seteuid(OBJ2UID(id)) != 0) rb_sys_fail(0);
return Qnil;
}
Set the effective user ID of the calling process to user. Not available on all platforms.