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.
640represents the desired file permissions, not theumaskvalue used to achieve them. - C.
038is an invalid octalumaskvalue because '8' is not a valid octal digit. - D. While
umask 027would also result inrw-r-----(640) for files, it specifies removing only the write permission for the group (2) as opposed to write and execute (3) provided by037.
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.