B.11. Lab B.11: Change ACLs on All Files in a Linux Directory

This lab requires a Linux workstation.

Two utilities exist in Linux to allow you to work directly with the access control lists (ACLs) for files: getfacl, which shows the ACL information, and setfacl, which allows you to set the ACL information.

Using these two together, you can take the ACLs from one file and make them apply to others. In this lab, you'll take the ACLs from the .fonts.cache-1 file (beneath /root) and make it apply to all files in the /tmp directory. To do so, follow these steps:

  1. From the desktop, choose Programs Accessories Terminal.

    NOTE

    Your menu choices might differ ...

Get CompTIA Security+™ Deluxe: Study Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.