OS Manuals

/usr/bin/groupmod

PAM login and passwd utilities

From shadow 4.20.3-r3 (os), captured 2026-11-05 by running groupmod --help (exit 0). permalink

Usage: groupmod [options] GROUP

Options:
  -a, --append                  append the users mentioned by -U option to the group
                                without removing existing user members
  -g, --gid GID                 change the group ID to GID
  -h, --help                    display this help message and exit
  -n, --new-name NEW_GROUP      change the name to NEW_GROUP
  -o, --non-unique              allow using a duplicate (non-unique) GID
  -p, --password PASSWORD       change the password to this (encrypted)
                                PASSWORD
  -R, --root CHROOT_DIR         directory to chroot into
  -P, --prefix PREFIX_DIR       prefix directory where are located the /etc/* files
  -U, --users USERS             comma-separated list of users to add as
                                members of this group
Options (9)
OptionDescriptionSource
-a, --appendappend the users mentioned by -U option to the group without removing existing user membershelp
-g, --gid GIDchange the group ID to GIDhelp
-h, --helpdisplay this help message and exithelp
-n, --new-name NEW_GROUPchange the name to NEW_GROUPhelp
-o, --non-uniqueallow using a duplicate (non-unique) GIDhelp
-p, --password PASSWORDchange the password to this (encrypted) PASSWORDhelp
-R, --root CHROOT_DIRdirectory to chroot intohelp
-P, --prefix PREFIX_DIRprefix directory where are located the /etc/* fileshelp
-U, --users USERScomma-separated list of users to add as members of this grouphelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.