asked 226k views
5 votes
With a umask value of 112, What is the default permission assigned to a newly created regular file?

1) –x-x-wx
2) -rw-rw-r-
3) -r-xr-x-r-
4) Cannot be determined

asked
User Jermny
by
8.1k points

1 Answer

3 votes

Final answer:

With a umask value of 112, the default permissions for a new regular file are -rw-rw-r--, which can be determined by subtracting the umask value from the default permissions value.

Step-by-step explanation:

With a umask value of 112, the default permissions assigned to a newly created regular file can be determined by subtracting the umask value from the default file permissions value. The default permission for files is typically 666 (read and write), which in binary is 110 110 110. Subtracting the umask value of 112, or binary 001 001 000, gives us 110 101 110. Translated back to the symbolic notation, this grants the permissions -rw-rw-r--.

answered
User Sheelpriy
by
8.3k points