From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security

Unlock the full course today

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

Delete access control lists

Delete access control lists

- [Instructor] Due to the added complexity of ACLs, there are three different ways of deleting ACLs on a file or directory. For this exercise, we'll need to create a directory and assign multiple ACLs to it. Lets create directory called acldeldir using mkdir. In a terminal type mkdir space acldeldir and hit enter. Now let's add a couple of ACLs to it. Type in setfacl space dash m, space user colon root colon rwx space acldeldir. There there is a forward slash at the end of my director name, because I typed in ACL, and then hit my tab key, and it completed the line for me. This is a great space saver, and I recommend it. Hit enter. Now let's add a group ACL by typing in setfacl space dash m space group colon root colon rwx space acl, and then I'll hit my tab key again and it'll complete the line. Hit enter. Let's add another group ACL by typing in setfacl space dash m space group colon audio colon rw space acldeldir, and hit enter. The last ACL will add as a default ACL. Type in…

Contents