O'Reilly logo

Practical Linux by Bill Ball, John Ray, Michael Turner, M. Drew Streib

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding, Editing, and Deleting Groups

Similar to the user commands, there are commands for controlling groups as well. They are

groupaddAdd groups
groupmodModify groups
groupdelDelete groups

Adding Groups with the groupadd Command

The groupadd command allows you to add groups to the system from the command line. To do so, log in as the root user and enter the following command:

[root@insocoxygen /root]# groupadd groupname

where groupname is the name of the group you want to add to the system.

For example, to add the group www to your system, you would use the command:

[root@insocoxygen /root]# groupadd www

See the man page regarding groupadd for a full list of all the command-line options available.

Modifying Groups with the groupmod Command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required