SPVM::Sys::User - User System Call
use Sys::User; my $effective_user_id = Sys::User->geteuid;
Sys::User is the class for the user manipulation.
Sys::User
native static method getuid : int ()
Get the real user ID.
native static method geteuid : int ()
Get the effective user ID.
native static method getgid : int ()
Get the real group ID.
native static method getegid : int ()
Get the effective group ID.
native static method setuid : int ($uid : int)
Set the user ID.
native static method seteuid : int ($euid : int)
Set the effective user ID.
native static method setgid : int ($gid : int)
Set the real user ID.
native static method setegid : int ($egid : int)
Set the effective group ID.
native static method setpwent : void ()
Move to the head of the group database.
native static method endpwent : void ()
Close the group database.
native static method getpwent : Sys::User::Passwd ()
Get a group entry. The group entry is a Sys::User::Passwd object.
native static method setgrent : void ()
native static method endgrent : void ()
native static method getgrent : Sys::User::Group ()
Get a group entry as Sys::User::Group
native static method getgroups : int[] ()
Get group IDs.
native static method setgroups : void ($groups : int[])
Set group IDs.
native static method getpwuid : Sys::User::Passwd ($id : int)
Get a group entry by the user id. The group entry is a Sys::User::Passwd object.
native static method getpwnam : Sys::User::Passwd ($name : string)
Get a group entry by the user name. The group entry is a Sys::User::Passwd object.
native static method getgrgid : Sys::User::Group ($id : int)
Get a group entry by the user id. The group entry is a Sys::User::Group object.
native static method getgrnam : Sys::User::Group ($name : string)
To install SPVM::Sys, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Sys
CPAN shell
perl -MCPAN -e shell install SPVM::Sys
For more information on module installation, please visit the detailed CPAN module installation guide.