Linux Foundation Certified System Administrator (LFCS) — Question 5

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

Answer options

Correct answer: D

Explanation

The correct umask value of 0027 subtracts permissions from the default file mode, which is typically 666 for files. This results in the final permissions of -rw-r----- (read and write for owner, read for group). The other options either do not yield the right permissions or are not valid umask values for achieving the desired outcome.