Courseiva
System ManagementmediumMultiple SelectObjective-mapped

XK0-006 System Management Practice Question

A Linux administrator needs to add an ACL entry to grant read permission to a user named 'jdoe' on a file. Which TWO commands can be used to achieve this? (Select TWO).

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

setfacl -m u:jdoe:r file

Both setfacl -m and setfacl --modify can be used to modify ACLs. The -m option is the short form, and --modify is the long form.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • setfacl -m u:jdoe:r file

    Why this is correct

    This adds an ACL entry for user jdoe with read permission.

  • setfacl --modify u:jdoe:r file

    Why this is correct

    The long option --modify works like -m.

  • chown jdoe file

    Why it's wrong here

    chown changes ownership, not ACLs.

  • setfacl -x u:jdoe file

    Why it's wrong here

    This removes ACL entries for user jdoe.

  • chmod u+r file

    Why it's wrong here

    chmod modifies standard permissions, not ACLs.

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

About these practice questions

Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.