XK0-006 System Management Practice Question
An administrator wants to grant a specific user, 'jdoe', read and write access to a file that is owned by root:root with permissions 640. The administrator does not want to change the file's owner or group. Which approach should be used?
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
✓
Use setfacl -m u:jdoe:rw file
ACLs allow granting permissions to a specific user without changing the file's owner or group. setfacl -m u:jdoe:rw file sets read-write ACL for user jdoe.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Use setfacl -m u:jdoe:rw file
Why this is correct
Correct: ACL entry for user jdoe grants read and write without altering standard permissions.
- ✗
Change file owner to jdoe
Why it's wrong here
Changing owner is not desired as per scenario.
- ✗
Use chmod o+rw file
Why it's wrong here
This grants read-write to all others, which is too permissive and not targeted.
- ✗
Add jdoe to the root group
Why it's wrong here
Adding to root group would give group permissions, but root group is typically sensitive and not appropriate.
Visual reference
Go deeper
Related to this question
Learn chapter
File Permissions and Ownership
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.
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
One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.