From the course: Linux: Files and Permissions
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Delete ACLs - Linux Tutorial
From the course: Linux: Files and Permissions
Delete ACLs
- [ Instructor] Due to the added complexity of ACLs, there are three different ways of deleting ACLs on a file or directory. For this exercise, you'll want to be in your ACL exercise directory that we created in a previous video. To do so, type in cd -/aclexercise and hit Enter. Let's create a directory to set ACLs on. Type in mkdir acldir and hit Enter. Now, let's add a couple of ACLs. Type in setfacl -m user:root:rwx acldir and hit Enter. Now bringing a line back and change user to group and hit Enter again. Bringing a line back one more time, and change root to audio and hit Enter. We'll also set a default ACL. Type in setfacl -d, for default, space -m user:root:rwx acldir and hit Enter. Now let's verify them with getfacl. Type in getfacl acldir and hit Enter. We should see our user ACL, group ACL's and a default ACL as well. To delete ACL's we'll use the setfacl command again. There are three different options…
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.