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.
Get Linux in a Nutshell, 6th 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.