SIMULATION -
Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)
0077, 077
In Linux, the umask
command is used to set the default permissions of newly created files and directories. It works by subtracting the umask value from the maximum permissions allowed for the file or directory.
The maximum permissions for files are 666 (rw-rw-rw-) and for directories are 777 (rwxrwxrwx). To achieve the desired default permissions of 600 (rw-------) for files and 700 (rwx------) for directories, we need to subtract the appropriate value from the maximum permissions.
For files:
For directories:
Therefore, the umask value that will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories is 0666
.