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
Go deeper
Related to this question
Learn chapter
File Permissions and Ownership
Key term
ACL
An Access Control List is a set of rules that determines who or what can access specific network resources or data.
Key term
User
A user is any person, system, or device that interacts with an IT service, resource, or identity system, typically authenticated through credentials and authorized to perform specific actions.
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 →
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.