Jump to content

Group (database)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Chmarkine (talk | contribs) at 03:26, 20 August 2014 (Python: change to https if the server sends HSTS header, replaced: http://docs.python.org → https://docs.python.org using AWB). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

group is a name service database used to store group information on Unix-like operating systems. The sources for the group database (and hence the sources for groups on a system) are configured, like other name service databases, in nsswitch.conf.

Seeing available groups on a Unix system

The contents of the group database (and available groups) can be seen with a variety of tools:

Command line

The getent command can be used to fetch group information.

Fetching a list of all available groups

getent group

Fetching a specific group

For a specific group called 'users':

getent group users

Python