groupinfo(8)

groupinfo8

Display group information

Usage

groupinfo [-e] group

Overview

The groupinfo utility displays the name, group ID (GID), and members of the specified group.

The options are as follows:

-e

Do not display anything (quiet mode). This form of the command is useful for scripts which need to check whether a particular group name or GID is already in use on the system.

The group argument may be either a group name or a GID.

Exit status

The groupinfo utility exits 0 if group exists, and non-zero if it does not.

Caveats

If the specified group is the primary group of a user, but that user is not listed as a member of the group in the group(5) file, the groupinfo utility fails to list that user as a member of the group.

Releases

54 releases since OpenBSD 2.8; the text changed 7 times.

  1. 2.8–2.9
  2. 3.0–3.3
  3. 3.4–4.1
  4. 4.2–4.4
  5. 4.5–4.8
  6. 4.9–5.3
  7. 5.4–6.0
  8. 6.1–8.0

-v until OpenBSD 4.4.

History

The groupinfo utility first appeared in OpenBSD 2.7.

Authors

The groupinfo utility was written by Alistair G. Crooks ⟨[email protected]⟩.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.