Ruby Process::UID Functions
EditRocket provides the following information on Process::UID functions in the Ruby source code builder.
change_privilege(integer) - Change the current process's real and effective user ID to that specified by integer. Returns the new user ID. Not available on all platforms.
eid - Returns the effective user ID for this process.
grant_privilege(integer) - Set the effective user ID, and if possible, the saved user ID of the process to the given integer. Returns the new effective user ID. Not available on all platforms.
re_exchange - Exchange real and effective user IDs and return the new effective user ID. Not available on all platforms.
re_exchangeable? - Returns true if the real and effective user IDs of a process may be exchanged on the current platform.
rid - Returns the (real) user ID of this process.
sid_available? - Returns true if the current platform has saved user ID functionality.
switch - Switch the effective and real user IDs of the current process. If a block is given, the user IDs will be switched back after the block is executed. Returns the new effective user ID if called without a block, and the return value of the block if one is given.