nerdexam
CompTIA

XK0-005 · Question #1687

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

The correct answer is B. 0027. 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…

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

How the community answered

(17 responses)
  • B
    82% (14)
  • C
    6% (1)
  • D
    12% (2)

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.

Topics

#Linux Permissions#umask#File Permissions#System Configuration

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice