From the course: Linux CentOS 7: Files and Permissions

Unlock the full course today

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

Manage default ACLs

Manage default ACLs - Linux Tutorial

From the course: Linux CentOS 7: Files and Permissions

Start my 1-month free trial

Manage default ACLs

- [Narrator] Standard Linux permissions only have one type of inheritance in the form of an SGID bit on directories. In that case the files and directories created inside inherit the group owner of the parent directory which there can only be one of. ACLs go much further, as they let files and directories inherit any number of user or group permissions. These ACLs are called default ACLs. Keep in mind that if you want to allow a user to access a directory, you set a regular ACL on it first. If, however, you want that user to access all new files and directories inside it, then set a default ACL. Usually, you'll need to do both of these operations. For this exercise we'll make a directory called acldir. In a terminal type in sudo space mkdir space /home/acldir and hit Enter. Type in your password and hit Enter again. If you already have this directory from another lesson go ahead and use it. Now let's change into it using cd. Type in cd space /home/acldir and hit Enter. You can verify…

Contents