From the course: Linux: Files and Permissions
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
ACL tricks - Linux Tutorial
From the course: Linux: Files and Permissions
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're slightly random but altogether, still very useful. For this exercise, we will continue using our ACL exercise directory. Change to it by typing in the cd tilde /aclexercise, and hit Enter. And you can verify your path with pwd. Now, let's create a directory and some files. For expediency, I'll use brace expansion. Type in mkdir space dir1 and hit Enter. And then type touch space dir1/file{1,2}.txt, and hit Enter. This is easier to visualize if we use the tree command. Type in tree and hit Enter. Now, let's add an ACL. Type in setfacl space dash m for modify space user:root:rwx space dir1/file1.txt, and hit Enter. This will add an ACL for root to file1.txt. Verify with getfacl dash capital R space dir1. This will list all ACLs and all files in dir1. Now…
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.