Networking / Beginners

The groupadd command

The groupadd command creates a new group. It has the following syntax:

groupadd [options] group

Although you have several possible options to use, the only one you're likely to need is -r, which creates a system group that has special privileges.
Here's an example that creates a group named castaways:

$ groupadd castaways

That's all you have to do to create a new group. To administer the group, you use the gpasswd command.

[Previous] [Contents] [Next]