Courseiva
hardMultiple ChoiceObjective-mapped

XK0-006 Practice Question: A Linux administrator needs to ensure that only…

A Linux administrator needs to ensure that only the root user can run commands in the /usr/local/bin/scripts directory. Which command should be used to set the appropriate permissions?

⚠ Common exam trap

Watch out — candidates often choose 755 or 750 as 'standard' permissions for directories, forgetting that the requirement explicitly restricts access to only root, not to any group or other users.

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

chmod 700 /usr/local/bin/scripts

The requirement is that only the root user can run commands in the directory. Permission 700 (owner: rwx, group: ---, others: ---) grants full access exclusively to the owner (root), while denying all access to the group and others. This matches the requirement precisely.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • chmod 750 /usr/local/bin/scripts

    Why it's wrong here

    Allows group to read and execute.

  • chmod 700 /usr/local/bin/scripts

    Why this is correct

    Owner (root) gets rwx; group and others have no access.

  • chmod 755 /usr/local/bin/scripts

    Why it's wrong here

    Allows group and others to read and execute.

  • chmod 770 /usr/local/bin/scripts

    Why it's wrong here

    Allows group to write and execute.

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.