23.6 Creating Groups

To create a group by using the groupadd command:

# groupadd [options] groupname

Typically, you might want to use the -g option to specify the group ID (GID). For example:

# groupadd -g 1000 devgrp

For more information, see the groupadd(8) manual page.