|
openmediavault
4.0 (Arrakis)
The open network attached storage solution
|
Public Member Functions | |
| __construct ($id) | |
| exists () | |
| assertExists () | |
| assertNotExists () | |
| getName () | |
| getUid () | |
| getGid () | |
| getGecos () | |
| getHomeDirectory () | |
| getShell () | |
| getPassword () | |
| getLastChanged () | |
| getMinimum () | |
| getMaximum () | |
| getWarn () | |
| getInactive () | |
| getExpire () | |
| getReserved () | |
| getGroups () | |
| getQuotas () | |
| authenticate ($password) | |
| isSystemAccount () | |
Static Public Member Functions | |
| static | getUsers () |
This class provides a simple interface to handle a system user.
| OMV\System\User::__construct | ( | $id | ) |
Constructor
| id | The name or UID of the system user. |
| OMV\System\User::assertExists | ( | ) |
Assert that the system user exists.
| OMV\System\User::assertNotExists | ( | ) |
Assert that the system user not exists.
| OMV\System\User::authenticate | ( | $password | ) |
Authenticate user via PAM. Account expiration and access hours are checked, too. Note, the calling process must have the privilege to read the user shadow file.
| password | The password. |
| OMV\System\User::exists | ( | ) |
Check whether the system user exists.
| OMV\System\User::getGecos | ( | ) |
Get the comment.
| OMV\System\User::getGid | ( | ) |
Get the users group ID.
| OMV\System\User::getGroups | ( | ) |
Get the groups the user is in.
| OMV\System\User::getHomeDirectory | ( | ) |
Get the home directory.
| OMV\System\User::getName | ( | ) |
Get the user name.
| OMV\System\User::getPassword | ( | ) |
Get the encrypted password.
| OMV\System\User::getQuotas | ( | ) |
Get the user quotas.
| OMV\System\User::getShell | ( | ) |
Get the shell.
| OMV\System\User::getUid | ( | ) |
Get the user ID.
|
static |
Enumerate user names.
| OMV\System\User::isSystemAccount | ( | ) |
Check if the given user is a system account.
1.8.13