Skip to main content

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

NameTypeDescription
uidintThe user ID used to look up the username in the system password database.
gidintThe primary group ID to be included in the process's group access list.

Returns

TypeDescription
nullNothing is returned; the function modifies the process state directly.