Courseiva
System ManagementhardMultiple ChoiceObjective-mapped

XK0-006 System Management Practice Question

A developer wants to grant a user named 'john' read and write permissions to a file, but the file currently has an ACL that gives 'jane' full control. The administrator wants to add an ACL entry for 'john' without modifying existing entries. Which command accomplishes this?

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:john:rw file

setfacl -m adds or modifies an ACL entry without affecting others.

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 -x u:john:rw file

    Why it's wrong here

    -x removes an ACL entry, not adds.

  • setfacl -b u:john:rw file

    Why it's wrong here

    -b removes all ACL entries.

  • chmod u+rw file; setfacl -m u:john:rw file

    Why it's wrong here

    chmod changes standard permissions, not ACL; but this would also add the ACL entry, but is inefficient. The question asks for one command.

  • setfacl -m u:john:rw file

    Why this is correct

    Correct: -m modifies ACL, u:john:rw sets user john to rw.

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

This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.