getuid

Process.uid â fixnumProcess::UID.rid â fixnumProcess::Sys.getuid â fixnum Class Public methods Returns the (real) user ID of this process. Process.uid #=> 501

issetugid

Process::Sys.issetugid â true or false Class Public methods Returns true if the process was created as a result of an execve(2) system call which had either of the setuid or setgid bits set (and extra privileges were given as a result) or if it has changed any of its real, effective or saved user or group IDs since it began execution.

setegid

Process::Sys.setegid(group) â nil Class Public methods Set the effective group ID of the calling process to group. Not available on all platforms.

seteuid

Process::Sys.seteuid(user) â nil Class Public methods Set the effective user ID of the calling process to user. Not available on all platforms.

setgid

Process::Sys.setgid(group) â nil Class Public methods Set the group ID of the current process to group. Not available on all platforms.

setregid

Process::Sys.setregid(rid, eid) â nil Class Public methods Sets the (group) real and/or effective group 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.

setresgid

Process::Sys.setresgid(rid, eid, sid) â nil Class Public methods 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.

setresuid

Process::Sys.setresuid(rid, eid, sid) â nil Class Public methods 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.

setreuid

Process::Sys.setreuid(rid, eid) â nil Class Public methods 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.

setrgid

Process::Sys.setrgid(group) â nil Class Public methods Set the real group ID of the calling process to group. Not available on all platforms.