Question 50
A RHEL 10 process requests mode 666 when creating a regular file under umask 002. Assuming no ACL or subsequent chmod, which permission mode results?
Explanation
Correct Answer
The kernel computes file mode 666 AND NOT umask 002, yielding 664 (rw-/rw-/r--). A umask only removes permissions already requested; these bits are the exact allowed rights before ACL or later chmod changes.
Incorrect Answers
The correct calculation is 666 & ~002 = 664, not 666. other users get rw- instead of required r-- (incorrectly grants write); default file creation cannot add bits that the requested mode excluded.
The correct calculation is 666 & ~002 = 664, not 644. owning group gets r-- instead of required rw- (incorrectly removes write); default file creation cannot add bits that the requested mode excluded.
The correct calculation is 666 & ~002 = 664, not 624. owning group gets -w- instead of required rw- (incorrectly removes read); default file creation cannot add bits that the requested mode excluded.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests