class Process

Defined in:

process.cr

Class Method Summary

Class Method Detail

def self.become(user : System::User, group : System::Group) : Nil #

Sets the real, effective, and saved User and Group to the ones specified.


[View source]
def self.become(uid : UInt32, gid : UInt32) : Nil #

[View source]
def self.effective_group : System::Group #

Returns the current process's effective Group.


[View source]
def self.effective_user : System::User #

Returns the current process's effective User.


[View source]
def self.gid=(gid : UInt32) : Nil #

[View source]
def self.group : System::Group #

Returns the current process's Group.


[View source]
def self.group=(group : System::Group) : Nil #

Sets the real, effective, and saved Group to the one specified.


[View source]
def self.root? : Bool #

Returns a Bool indicating if the current process is running as root.


[View source]
def self.saved_group : System::Group #

Returns the current process's saved Group.

Note: Not all Unix and Unix deriviatives support a saved Group.


[View source]
def self.saved_user : System::User #

Returns the current process's saved User.

Note: Not all Unix and Unix deriviatives support a saved User.


[View source]
def self.uid=(uid : UInt32) : Nil #

[View source]
def self.user : System::User #

Returns the current process's User.


[View source]
def self.user=(user : System::User) : Nil #

Sets the real, effective, and saved User to the one specified.


[View source]