initgroups
Init process group permissions.
Compat version of :func:`os.initgroups` that was first
added to Python 2.7.
def initgroups(
uid: int,
gid: int
) - > null
Init process group permissions. Compat version of :func:os.initgroups that was first added to Python 2.7.
Parameters
| Name | Type | Description |
|---|---|---|
| uid | int | The user ID used to look up the username in the system password database. |
| gid | int | The primary group ID to be included in the process's group access list. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function modifies the process state directly. |