Module Process::Sys
In: process.c

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.

Methods

getegid   geteuid   getgid   getuid   issetugid   setegid   seteuid   setgid   setregid   setresgid   setresuid   setreuid   setrgid   setruid   setuid  

Public Class methods

Returns the effective group ID for this process. Not available on all platforms.

   Process.egid   #=> 500

Returns the effective user ID for this process.

   Process.euid   #=> 501

Returns the (real) group ID for this process.

   Process.gid   #=> 500

Returns the (real) user ID of this process.

   Process.uid   #=> 501

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 integer. Not available on all platforms.

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

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

Sets the (integer) 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 (integer) 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 (integer) 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 (integer) 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 integer. Not available on all platforms.

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

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

[Validate]

ruby-doc.org is a service of James Britt and Neurogami, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.