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

Unlock this course with a free trial

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

Create, manage, and diagnose advanced filesystem permissions

Create, manage, and diagnose advanced filesystem permissions - Linux Tutorial

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

Create, manage, and diagnose advanced filesystem permissions

- [Instructor] Now imagine we enter the command ls -l. And in some directory we see this list of files. We see that these are owned by the Alex user and the staff group. The first three permission bits, rw-, tell us that Alex can read and write to these files. The next three, rw-, tell us that any user belonging to the staff group can also read and write. And finally, the last three permission bits, r--, show us that all of the other users can only read these files but not write to them. Now as we can see, only the first set of permissions is very specific, targeted on a single user. The other two are very wide, applying to everyone in a group or all the other users on a system. However, most of the time this isn't a problem. But now imagine this. We're logged in as a user called Jeremy. He's obviously not Alex, and he doesn't belong to the staff. That means that the third set of permissions will be applied to him, r--. But what if we want Jeremy to be able to edit file3? We could…

Contents