What does umask do?
-
It puts a mask on user accounts
-
It means unix mask
-
default permissions
-
default names
Reveal answer
Fill a bubble to check yourself
C
Correct answer
Explanation
umask (user file-creation mode mask) determines default permissions for newly created files and directories. It specifies which permission bits to turn off when creating new files.
AI explanation
umask sets the default permission mask that determines what access rights new files and directories receive when created, by subtracting the mask's bits from the system's base permissions. It doesn't apply to user accounts or naming, only to the default permission bits assigned at creation time.