nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #720

LFCS Question #720: Real Exam Question with Answer & Explanation

The correct answer is A: 037. The umask value determines the default permissions for newly created files by specifying which permission bits are removed from the default mask of 666.

Submitted by mateo_ar· Apr 18, 2026User and Group Management

Question

You want the default permissions for your files to bE.rw-r-. How must you set umask?

Options

  • A037
  • B640
  • C038
  • D027

Explanation

The umask value determines the default permissions for newly created files by specifying which permission bits are removed from the default mask of 666.

Common mistakes.

  • B. 640 represents the desired file permissions, not the umask value used to achieve them.
  • C. 038 is an invalid octal umask value because '8' is not a valid octal digit.
  • D. While umask 027 would also result in rw-r----- (640) for files, it specifies removing only the write permission for the group (2) as opposed to write and execute (3) provided by 037.

Concept tested. Umask permissions calculation

Reference. https://man7.org/linux/man-pages/man1/umask.1.html

Topics

#umask#file permissions#octal permissions#default permissions

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions