While auditing permissions you need to identify only the files under /projects that contain extended ACL entries (named users or groups) and ignore every file that relies solely on the traditional owner-group-other mode bits. The report must recurse through the entire directory tree. Which one-liner meets these requirements?
The -s (long form --skip-base) option instructs getfacl to skip files that only possess base ACL entries. These are the standard entries for user, group, and other that correspond to the traditional file mode bits. The -R (long form --recursive) option makes the command process all files and directories under the specified path. Therefore, getfacl -R --skip-base /projects correctly produces a report showing only the filesystem objects with extended ACLs.
The other options are incorrect:
Using --omit-header (-c) only suppresses the three-line comment header from the output; it does not filter the files that are displayed.
The -d flag shows the default ACL for a directory, but it does not filter the output to show only objects with extended ACLs.
The --numeric (-n) flag converts user and group names to their numeric IDs in the output but does not change which files are reported.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an extended ACL in Linux?
Open an interactive chat with Bash
What does the '--skip-base' option do in getfacl?
Open an interactive chat with Bash
Why is the '-R' option needed in the getfacl command?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .