From the course: Linux CentOS 7: Files and Permissions

Unlock the full course today

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

Read ACLs

Read ACLs - Linux Tutorial

From the course: Linux CentOS 7: Files and Permissions

Start my 1-month free trial

Read ACLs

- [Instructor] Because ACLs are layered on top of 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 mkdir and then change into it. Type in mkdir space aclexercise and hit enter. Now type in cd aclexercise and hit enter again. You can verify your path by typing in pwd. Now let's create a file and place an ACL on it. Type in touch aclfile and hit enter. We can verify this with ls -l. In order to read the ACLs on a file, we'll use the getfacl command. getfacl is installed by default in CentOs, but if you're using another distribution, you may have to install ACLs before proceeding. Type in getfacl space aclfile and hit enter. This lists the name of the file, the user owner, the group owner, and permissions for the user group and other. Basically, this lists the standard Linux permissions. We can also view the same data in tabular form by passing the -t option to…

Contents