From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Manage groups

Manage groups - Linux Tutorial

From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)

Start my 1-month free trial

Manage groups

- [Instructor] Groups are an important part of the Linux User Management system. However, groups have one major limitation, they can't be nested, so you can't have a group within a group. To create a group we use groupadd. Groupadd has a few options, but the most common is dash g for specifying the group ID. Let's create a group called accounting with the group ID of 1050. In a terminal type in sudo space groupadd space dash g space 1050 space accounting and hit Enter. Type in your password and hit Enter again. We can verify this by viewing the Etsy group file. Type in cat space slash etc slash group and hit Enter. We see the last line has our accounting group and the group ID is 1050. If later we want to modify attributes of our group, we can with groupmod. For instance, if we want to change the group ID, we would type in sudo space groupmod space dash g space 1051 space accounting. This will change the group ID…

Contents