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 - Linux Tutorial
From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.