CompTIA Linux+ (XK0-005) — Question 281

A Linux administrator is changing the default system umask. The newly created files should have the -rw-r----- permission, and the newly created directories should have the drwxr----x permission. Which of the following commands should the administrator use?

Answer options

Correct answer: B

Explanation

The correct command is umask 0036, which sets the permissions for new files to -rw-r----- and for new directories to drwxr----x. The other umask values do not produce the desired permissions; umask 0035 would allow too many permissions for files, while umask 0037 and 0038 would restrict permissions beyond the required settings.