groupmod(8)

groupmod8

Modify an existing group on the system

Usage

groupmod [-ov] [-g gid] [-n newname] group

Overview

The groupmod utility modifies an existing group. The options are as follows:

-g gid

Gives the numeric group identifier to be used for the new group.

-n newname

Gives the new name which the group shall have.

-o

Allows the new group to have a GID which is already in use for another group.

-v

Enables verbose mode - explain the commands as they are executed.

Exit status

The groupmod utility exits 0 on success, and >0 if an error occurs.

Releases

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

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

History

The groupmod utility first appeared in OpenBSD 2.7.

Authors

The groupmod 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.