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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access