Module

The Process::Sys module contains UID and GID functions which provide direct bindings to the system calls of the same names instead of the more-portable versions of the same functionality found in the Process, Process::UID, and Process::GID modules.

Class Methods

Returns the effective group ID for the current process:

Process.egid # => 500

Not available on all platforms.

Returns the effective user ID for the current process.

Process.euid # => 501

Returns the (real) group ID for the current process:

Process.gid # => 1000

Returns the (real) user ID of the current process.

Process.uid # => 1000

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.

Set the effective group ID of the calling process to group. Not available on all platforms.

Set the effective user ID of the calling process to user. Not available on all platforms.

Set the group ID of the current process to group. Not available on all platforms.

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.

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.

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.

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.

Set the real group ID of the calling process to group. Not available on all platforms.

Set the real user ID of the calling process to user. Not available on all platforms.

Set the user ID of the current process to user. Not available on all platforms.