O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

groupmod — stdin  stdout  - file  -- opt  --help  --version

Synopsis

groupmod [options] group

The groupmod command modifies the given group, changing its name or group ID.

# groupmod -n newname friends

groupmod does not affect any files owned by this group: it simply changes the ID or name in the system’s records. Be careful when changing the ID, or these files will have group ownership by a nonexistent group.

Useful options

-n name

Change the group’s name to name (safe).

-g gid

Change the group’s ID to gid (risky).

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required