groupadd

Name

groupadd -- create a new group

Synopsis

groupadd [-g gid [-o]] group

Description

If the caller has appropriate privilege, the groupadd command shall create a new group named group. The group name shall be unique in the group database. If no gid is specified, groupadd shall create the new group with a unique group ID. If the group named group already exists, or if a group with gid ID exists and -o option is not set, groupadd shall issue a diagnostic message and exit with a non-zero exit status.

The groupadd command is a system administration utility, see Path For System Administration Utilities.

Options

-g gid [-o] 

The new group shall have group ID gid. If the -o option is not used, no other group shall have this group ID. The value of gid shall be non-negative.