|
| *hash | Qore::getgrgid (softint gid) |
| | Returns a group information hash representing the group information for the group ID passed, or, if the group ID does not exist NOTHING is returned.
|
| hash | Qore::getgrgid2 (softint gid) |
| | Returns a group information hash representing the group information for the group ID passed, or, if the group ID does not exist, a GETGRGID2-ERROR exception is thrown.
|
| *hash | Qore::getgrnam (string name) |
| | Returns a group information hash representing the group information for the group name passed, or, if the group does not exist NOTHING is returned.
|
| hash | Qore::getgrnam2 (string name) |
| | Returns a group information hash representing the group information for the group name passed, or, if the group does not exist, a GETGRNAM2-ERROR exception is thrown.
|
| hash | Qore::getpwnam (string name) |
| | Returns a password information hash representing the user information for the user name passed, or, if the user does not exist NOTHING is returned.
|
| hash | Qore::getpwnam2 (string name) |
| | Returns a password information hash representing the user information for the user name passed, or, if the user does not exist, a GETPWNAM2-ERROR exception is thrown.
|
| nothing | Qore::getpwuid () |
| | This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
|
| *hash | Qore::getpwuid (softint uid) |
| | Returns a password information hash representing the user information for the user ID passed, or, if the user ID does not exist NOTHING is returned.
|
| hash | Qore::getpwuid2 (softint uid) |
| | Returns a password information hash representing the user information for the user ID passed, or, if the user ID does not exist, a GETPWUID2-ERROR exception is thrown.
|
UNIX user and group functions
Group Information Hash
| Key | Type | Description |
gr_name | string | The name of the group |
gr_passwd | string | The encrypted password for the group |
gr_gid | int | The group id |
gr_mem | list | List of strings giving the usernames of members of the group |
Password Information Hash
| Key | Type | Description |
pw_name | string | The username of the user |
pw_passwd | string | The encrypted password for the user |
pw_gecos | string | The real name or description of the user |
pw_dir | string | The user's home directory |
pw_shell | string | The user's login shell |
pw_uid | int | The user's userid |
pw_gid | int | The group id of the user's primary group |