From the course: CompTIA Linux (XK0-005) Cert Prep

Unlock the full course today

Join today to access over 23,100 courses taught by industry experts.

Read access control lists

Read access control lists

- [Instructor] Because ACLs are layered onto standard Linux permissions, we can't use standard tools such as ls to list them. With ACLs comes a suite of new tools. Let's take a look. Go to a terminal and create a directory using the mkdir command by typing mkdir ~/aclexercise and hit Enter. And change into it by typing in cd ~/aclexercise and hit Enter again. You can check your path with pwd. Now let's create a file and place an ACL on it. Type in touch aclfile and hit Enter. Verify the file with ls -l. In order to read the ACLs on a file, we use the getfile ACL command. Getfacl is installed by default in Enterprise Linux, but if you're using another distribution, you may have to install ACL support before proceeding. If ACLs are not installed, you'll get an error message saying they are not supported. Once they're installed, you'll need to mount the file system with ACLs turned on. I will leave that exercise for you…

Contents