Name

groupadd

Synopsis

                  groupadd [options] group
               

System administration command. Create new group account group. Options -f and -r are added by RedHat and may not be available on all distributions.

Options

-f

Exit with error if group being added already exists. If a gid requested with -g already exists and the -o option has not been specified, assign a different gid as if -g had not been specified.

-g gid

Assign numerical group ID. (By default, the first available number above 500 is used.) The value must be unique unless the -o option is used.

-o

Accept a nonunique gid with the -g option.

-r

Add a system account. Assign the first available number lower than 499.

Get Linux in a Nutshell, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.