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.

ACL tricks

ACL tricks - Linux Tutorial

From the course: Linux CentOS 7: Files and Permissions

Start my 1-month free trial

ACL tricks

- [Instructor] It's very apparent that ACLs are an important addition to Linux permissions. However, there are some other neat tricks that we can do with them. They are slightly random but all together, still very useful. For this exercise, we need to create a directory called aclmiscdir using mkdir. Type in mkdir space aclmiscdir and hit enter. Now let's see the end of this directory by typing in cd space aclmiscdir and hitting enter. You can verify your path by typing in pwd. Now let's create a directory and some files. Type in mkdir space dir1 enter. Type in touch space dir1 slash file left curly bracket one comma two right curly bracket dot txt and hit enter. This creates a directory call dir1 and then inside of that makes two files called file1.txt and file2.txt. Now let's add some ACLs. Type in setfacl space dash capital R space dash m space user colon root colon rwx space dir1 and hit enter. This will recursively add an ACL for root to dir1 and every file in it. Verify with…

Contents