Copied to clipboard

groupadd

`groupadd` command is used to create a new user group in Linux system.

Examples

Create a new user group

groupadd newgroup

Specify the GID of the user group

groupadd -g 2000 newgroup

Allow the creation of a user group with a non-unique GID

groupadd -o newgroup

Create a system user group

groupadd -r systemgroup

Specify the password encryption

groupadd -p password newgroup

Force execution, even if the user group already exists

groupadd -f newgroup

Specify the property to create in the new group

groupadd -K attr=value newgroup