tldr/pages/linux/groupmod.md

262 B

groupmod

Modify existing user groups in the system. More information: https://manned.org/groupmod.

  • Change the group name:

groupmod -n {{new_group_name}} {{old_group_name}}

  • Change the group id:

groupmod -g {{new_group_id}} {{old_group_name}}