O'Reilly logo

Linux in a Nutshell, 6th Edition by Robert Love, Stephen Figgins, Ellen Siever, Arnold Robbins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

groupadd

Synopsis

groupadd [options] group

System administration command. Create a new user group.

Options

-f, --force

This option is useful for scripts. When specified the command will exit without error if the 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. This option is not available on all distributions.

-g gid, --gid 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.

-K key=value, --key key=value

Override defaults in /etc/login.defs.

-o

Accept a nonunique gid with the -g option.

-p string, --password string

Set the password for the group. string must already be encrypted appropriately for the system.

-r, --system

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

--usage

Display a very short list of acceptable options for the command.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required