Multiple choice technology operating systems

What does the command umask 123 do?

  1. It sets file owner permissions to read and write

  2. It sets the permissions of other users to read

  3. It sets group permissions to read and execute

  4. All of them

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

umask 123 removes execute (1) from owner, write (2) from group, and write+execute (3) from others. For files (default 666), owner keeps read+write (rw-), group keeps read (r--), others keep read (r--). For directories (default 777), owner loses execute (rw-), group loses write (r-x), others lose write+execute (r--). All three options describe correct aspects.