setruid

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

setuid

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

change_privilege

Process::UID.change_privilege(user) â fixnum Class Public methods Change the current process's real and effective user ID to that specified by user. Returns the new user ID. Not available on all platforms. [Process.uid, Process.euid] #=> [0, 0] Process::UID.change_privilege(31) #=> 31 [Process.uid, Process.euid] #=> [31, 31]

eid

Process.euid â fixnumProcess::UID.eid â fixnumProcess::Sys.geteuid â fixnum Class Public methods Returns the effective user ID for this process. Process.euid #=> 501

from_name

from_name(p1) Class Public methods

grant_privilege

Process::UID.grant_privilege(user) â fixnumProcess::UID.eid= user â fixnum Class Public methods Set the effective user ID, and if possible, the saved user ID of the process to the given user. Returns the new effective user ID. Not available on all platforms. [Process.uid, Process.euid] #=> [0, 0] Process::UID.grant_privilege(31) #=> 31 [Process.uid, Process.euid] #=> [0, 31]

re_exchange

Process::UID.re_exchange â fixnum Class Public methods Exchange real and effective user IDs and return the new effective user ID. Not available on all platforms. [Process.uid, Process.euid] #=> [0, 31] Process::UID.re_exchange #=> 0 [Process.uid, Process.euid] #=> [31, 0]

re_exchangeable?

Process::UID.re_exchangeable? â true or false Class Public methods Returns true if the real and effective user IDs of a process may be exchanged on the current platform.

rid

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

sid_available?

Process::UID.sid_available? â true or false Class Public methods Returns true if the current platform has saved user ID functionality.