Question: why umask has 4 digits?
Answer: 5.3 The umask. The umask (UNIX shorthand for "user file-creation mode mask") is a four-digit octal number that UNIX uses to determine the file permission for newly created files. ... Bits that are set in the umask correspond to permissions that are not automatically assigned to newly created files.