From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Create, delete, and modify local groups and group memberships

Create, delete, and modify local groups and group memberships - Linux Tutorial

From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Create, delete, and modify local groups and group memberships

- [Instructor] Now let's explore how to create, delete, and modify local groups and group memberships in Linux. Each user can belong to one or more groups. Now, why are these useful? Here's an example. Let's say we have a directory full of files that our developers need to work on. We need to create permissions for John and Jack so they can do their job running the website. And then we hire Jane, and we must know all the permissions for John and Jack and duplicate those exact permissions for Jane. If any of them leave or change positions, we'll have to modify their permissions again. An elegant solution to this problem is to create a new group called Developers. The Developers group is the owner of these files, and we change permissions so that the Developers group can read and write to those files. Then we add our three users to the Developers group. Now, John, being part of the Developers group, can easily edit those files as well as Jack and Jane. And if we want to temporarily deny…

Contents