Courseiva
System ManagementhardMultiple ChoiceObjective-mapped

XK0-006 System Management Practice Question

A system administrator needs to set the umask so that newly created files have permissions of 644 and directories have permissions of 755. Which umask value should be set?

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

0022

Default base permissions are 666 for files and 777 for directories. To get 644 (rw-r--r--) for files: 666 - 644 = 022. To get 755 (rwxr-xr-x) for directories: 777 - 755 = 022. So umask 022 works for both.

Answer analysis

Option-by-option breakdown

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

  • 0222

    Why it's wrong here

    0222 would remove write for all, resulting in 444 for files (r--r--r--), not desired.

  • 0022

    Why this is correct

    Correct: umask 022 subtracts group and others write permission, resulting in 644 for files and 755 for directories.

  • 000

    Why it's wrong here

    000 would result in 666 for files and 777 for directories, which is too permissive.

  • 077

    Why it's wrong here

    077 would remove all permissions for group and others, resulting in 600 for files and 700 for directories.

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.