groupmod - modify a group entry


groupmod [-D binddn] [-P path] [-g gid [-o]] [-p password]
 [-A user] [-R user] [--service service] [--help] [-v] [--usage] group


groupmod modifies a group entry using the values specified on the command line.


-g, --gid gid
 Force the new group ID to be the given number. This value must be positive and unique. The group of any file owned by the old group must be changed manually.
-o, --non-unique
 Allow duplicate (non-unique) group IDs.
-p, --password password
 Set the encrypted password as returned by crypt(3) as the new group password.
-A, --add-user user
 Add the user account to the specified group.
-R, --remove-user user
 Remove the user account from the specified group.
-D, --binddn binddn
 Use the Distinguished Name binddn to bind to the LDAP directory. The user will be prompted for a password for simple authentication.
-P, --path path
 The group file is located below the specified directory path. groupmod will use this file, not /etc/group.
--service service
 Modify the group from a special directory. The default is files, but ldap is also valid.
--help Print a list of valid options with a short description.
--usage Print a short list of valid options.
-v, --version
 Print the version number and exit.


/etc/group - group account information


login.defs(5), group(5), groupadd(8), groupmod(8)


Thorsten Kukuk <>

openSUSE Logo