easyMultiple SelectObjective-mapped
XK0-006 Practice Question: A technician is troubleshooting a user's…
A technician is troubleshooting a user's inability to execute a script. The script has execute permissions for the user. Which of the following could be causing the issue? (Choose two.)
⚠ Common exam trap
The trap here is that candidates focus solely on the file's execute permission and overlook the directory's execute permission, or they confuse SELinux context errors with simple permission issues.
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
✓
The script is in a directory without execute permission
Even if the script file itself has execute permissions, the user must also have execute permission on the directory containing the script. The directory's execute bit (often called the 'search' bit) is required to traverse the directory and access files within it. Without it, the kernel will deny access to any file in that directory, regardless of the file's own permissions.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The user is not the owner
Why it's wrong here
Ownership does not affect execution if permissions allow.
- ✗
The script has a syntax error
Why it's wrong here
Syntax error causes runtime failure, not inability to execute.
- ✗
The script is being blocked by a firewall
Why it's wrong here
Firewall does not affect local script execution.
- ✓
The script is in a directory without execute permission
Why this is correct
Directories need execute permission for users to traverse.
- ✓
The script's SELinux context is incorrect
Why this is correct
SELinux can deny execution even if file permissions allow.
Go deeper
Related to this question
Learn chapter
File Permissions and Ownership
Key term
Kernel
The kernel is the core program of an operating system that manages hardware resources and provides essential services for all other software to run.
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.