nerdexam
CompTIACompTIA

XK0-005 · Question #1687

XK0-005 Question #1687: Real Exam Question with Answer & Explanation

The correct answer is B: 0027. {"question_number": 3, "question": "Which umask setting ensures new files have default permissions -rw-r-----?", "correct_answer": "B. 0027", "explanation": "The umask is subtracted from the system default file permissions (0666 for files). The target permission -rw-r----- equals

System Management

Question

A systems administrator is customizing a new Linux server. Which of the following settings for would ensure that new files have the default permissions: -rw-r-----? umask

Options

  • A0017
  • B0027
  • C0038
  • D0640

Explanation

{"question_number": 3, "question": "Which umask setting ensures new files have default permissions -rw-r-----?", "correct_answer": "B. 0027", "explanation": "The umask is subtracted from the system default file permissions (0666 for files). The target permission -rw-r----- equals octal 0640. Calculating: 0666 - 0027 = 0640 (rw-r-----). Alternatively, bitwise: umask 0027 blocks write for group (020) and all permissions for others (007), yielding 0640. Option A (0017) would give 0650 (rw-r-x---), Option C (0038) is invalid (8 and 9 are not valid octal digits), and Option D (0640) is the permission itself, not the umask.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

#Linux Permissions#umask#File Permissions#System Configuration

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions