Name

SPVM::Sys::User::Passwd - Entry of Password Database

Usage

use Sys::User;
use Sys::User::Passwd;

Sys::User->setpwent;

# Get a Sys::User::Passwd object
my $password = Sys::User->getpwent;

my $user_name = $password->pw_name;

Sys::User->endpwent;

Description

Sys::User::Passwd is the class for an entry of the password database.

Class Methods

pw_name

method pw_name : string ();

Get the user name.

pw_passwd

method pw_passwd : string ();

Get the user password.

pw_uid

method pw_uid : int ();

Get the user id.

pw_gid

method pw_gid : int ();

Get the group id.

pw_gecos

method pw_gecos : string ();

Get the user information.

pw_dir

method pw_dir : string ();

Get the home directory.

pw_shell

method pw_shell : string ();

Get the shell program.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License