Multiple choice technology programming languages

Assume that the .login/.profile file has the following command umask 27 What is the permission set upon creating a new file?

  1. -rwx--x---

  2. -rw--wx-wx

  3. -----w-rwx

  4. -rw-r-----

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

A umask of 027 (octal) means removing write permissions for group (2) and all permissions for others (7). Starting from default file permissions 666 (rw-rw-rw-), subtracting 027 gives 640 (rw-r-----): read/write for owner, read-only for group, no permissions for others. The key is understanding that umask subtracts from the default 666 for files.