Module

Process::Sys

Inheritance

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

Class

Visibility Signature
public getegid ()
public geteuid ()
public getgid ()
public getuid ()
public issetugid ()
public setegid (p1)
public seteuid (p1)
public setgid (p1)
public setregid (p1, p2)
public setresgid (p1, p2, p3)
public setresuid (p1, p2, p3)
public setreuid (p1, p2)
public setrgid (p1)
public setruid (p1)
public setuid (p1)

Class Method Detail

Process.egid => fixnum
Process::GID.eid => fixnum
Process::Sys.geteid => fixnum

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

   Process.egid   #=> 500

Process.euid => fixnum
Process::UID.eid => fixnum
Process::Sys.geteuid => fixnum

Returns the effective user ID for this process.

   Process.euid   #=> 501

Process.gid => fixnum
Process::GID.rid => fixnum
Process::Sys.getgid => fixnum

Returns the (real) group ID for this process.

   Process.gid   #=> 500

Process.uid => fixnum
Process::UID.rid => fixnum
Process::Sys.getuid => fixnum

Returns the (real) user ID of this process.

   Process.uid   #=> 501

Process::Sys.issetugid => true or false

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.

Process::Sys.setegid(integer) => nil

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

Process::Sys.seteuid(integer) => nil

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

Process::Sys.setgid(integer) => nil

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

Process::Sys.setregid(rid, eid) => nil

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.

Process::Sys.setresgid(rid, eid, sid) => nil

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.

Process::Sys.setresuid(rid, eid, sid) => nil

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.

Process::Sys.setreuid(rid, eid) => nil

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.

Process::Sys.setrgid(integer) => nil

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

Process::Sys.setruid(integer) => nil

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

Process::Sys.setuid(integer) => nil

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