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,600 courses taught by industry experts or purchase this course individually.

Set access control lists (ACLs)

Set access control lists (ACLs)

- [Instructor] ACLs are turned on by default in CentOS for the OS partition only. In comparison to being creative with standard permissions along with special bits and UMass to solve problems, ACLs are downright easy to implement. With ACLs, you just give the right people and groups the access they need and you're done. The command we use to assign file ACLs is setfacl. The syntax is setfacl space dash m space user colon the username, colon the desired permissions space. And then the file name. For example if we wanted to set our rwx permissions for the username Bob on slash home slash file dot txt we'd type setfacl dash m for modify user colon Bob for the username rwx for permissions followed by the file path. In this case slash home slash file dot txt. Let's go to a terminal to use the setfacl command. To set up this exercise we'll create a directory called acldir using mkdir, type in sudo space mkdir space slash home slash acldir and hit enter type in your password and hit enter…

Contents