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
Go deeper
Related to this question
Learn chapter
Linux Fundamentals and History
Key term
Linux
Linux is an open-source operating system that manages computer hardware and software, widely used in servers, desktops, and embedded systems.
Key term
setfacl
setfacl is a Linux/Unix command used to set Access Control Lists on files and directories, providing more detailed permission control beyond the standard owner-group-others model.
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 →
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.