CompTIA Linux+ (XK0-005) — Question 245
A systems administrator is customizing a new Linux server. Which of the following settings for umask would ensure that new files have the default permissions: -rw-r-----?
Answer options
- A. 0017
- B. 0027
- C. 0038
- D. 0640
Correct answer: B
Explanation
The correct umask value of 0027 subtracts write permissions for group users, resulting in new files having the permissions -rw-r----- (read and write for owner, read for group, no permissions for others). The other options either grant too many permissions or do not match the desired output.