| 1 | package SPVM::Sys::User::Passwd; | ||
| 2 | |||
| 3 | 1; | ||
| 4 | |||
| 5 | =head1 Name | ||
| 6 | |||
| 7 | SPVM::Sys::User::Passwd - Entry of Password Database | ||
| 8 | |||
| 9 | =head1 Usage | ||
| 10 | |||
| 11 | use Sys::User; | ||
| 12 | use Sys::User::Passwd; | ||
| 13 | |||
| 14 | Sys::User->setpwent; | ||
| 15 | |||
| 16 | # Get a Sys::User::Passwd object | ||
| 17 | my $password = Sys::User->getpwent; | ||
| 18 | |||
| 19 | my $user_name = $password->pw_name; | ||
| 20 | |||
| 21 | Sys::User->endpwent; | ||
| 22 | |||
| 23 | =head1 Description | ||
| 24 | |||
| 25 | C<Sys::User::Passwd> is the class for an entry of the password database. | ||
| 26 | |||
| 27 | =head1 Class Methods | ||
| 28 | |||
| 29 | =head2 pw_name | ||
| 30 | |||
| 31 | C<method pw_name : string ();> | ||
| 32 | |||
| 33 | Get the user name. | ||
| 34 | |||
| 35 | =head2 pw_passwd | ||
| 36 | |||
| 37 | C<method pw_passwd : string ();> | ||
| 38 | |||
| 39 | Get the user password. | ||
| 40 | |||
| 41 | =head2 pw_uid | ||
| 42 | |||
| 43 | C<method pw_uid : int ();> | ||
| 44 | |||
| 45 | Get the user id. | ||
| 46 | |||
| 47 | =head2 pw_gid | ||
| 48 | |||
| 49 | C<method pw_gid : int ();> | ||
| 50 | |||
| 51 | Get the group id. | ||
| 52 | |||
| 53 | =head2 pw_gecos | ||
| 54 | |||
| 55 | C<method pw_gecos : string ();> | ||
| 56 | |||
| 57 | Get the user information. | ||
| 58 | |||
| 59 | =head2 pw_dir | ||
| 60 | |||
| 61 | C<method pw_dir : string ();> | ||
| 62 | |||
| 63 | Get the home directory. | ||
| 64 | |||
| 65 | =head2 pw_shell | ||
| 66 | |||
| 67 | C<method pw_shell : string ();> | ||
| 68 | |||
| 69 | Get the shell program. | ||
| 70 | |||
| 71 | =head1 Copyright & License | ||
| 72 | |||
| 73 | Copyright (c) 2023 Yuki Kimoto | ||
| 74 | |||
| 75 | MIT License | ||
| 76 |