nerdexam
CompTIACompTIA

XK0-005 · Question #43

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

The correct answer is D: 0027. The permissions we want are 750 for directories and 640 for files. To calculate the umask value simply subtract the desired permissions from the default one: Umask value: 777-750 = 027 https://linuxize.com/post/umask-command-in-linux/

Security

Question

Which of the following settings for umask ensures that new files have the default permissions -rw- r----- ?

Options

  • A0017
  • B0640
  • C0038
  • D0027

Explanation

The permissions we want are 750 for directories and 640 for files. To calculate the umask value simply subtract the desired permissions from the default one: Umask value: 777-750 = 027 https://linuxize.com/post/umask-command-in-linux/

Topics

#umask#File Permissions#Access Control#Linux Security

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions