nerdexam
CompTIA

XK0-005 · Question #43

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

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

How the community answered

(46 responses)
  • A
    11% (5)
  • B
    2% (1)
  • C
    7% (3)
  • D
    80% (37)

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 Practice