Exam 101-500 All QuestionsBrowse all questions from this exam
Question 2

Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?

    Correct Answer: B

    The umask value determines the default permissions for newly created directories and files. The value 0027 means: the first digit (0) is usually ignored and indicates that the value is in octal form. The second digit (0) subtracts no permissions from the user (owner). The third digit (2) subtracts write permissions from the group, leaving read and execute permissions. The fourth digit (7) subtracts read, write, and execute permissions from others. This results in permissions of 750 for new directories, which means the owner can read, write, and execute; the group can read and execute; and others have no access. This matches the requirement of directories being readable, writable, and listable by the owning user, readable and listable by the owning group, and not accessible at all by everyone else.

Discussion
anhcqOption: B

written and listed by their owning user => 7 => umask 0 read and listed by their owning group => 5 => umask 2 not accessible at all for everyone else => 0 => umask 7 => umask 0027, answer is B

MalicaideOption: B

Answer is B. 0027

Tewodros89Option: B

Answer is B. 0027 The leading '0' means we're specifying the umask in octal (base 8). The '2' in the first position subtracts write permissions for "others" (everyone else). The '7' in the second position subtracts read, write, and execute permissions for the group. The '2' in the third position subtracts write permission for the user.

hello2022

excellent explanation

minajahan

https://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html

Dlm17Option: B

B is the answer

armandolubabaOption: B

B is correct

McLabaOption: B

Mask (Numeric Notation) 137 Allowed Permissions rw-r----- https://wintelguy.com/umask-calc.pl

janotijrOption: B

777 for directories 666 for files written and listed by their owning user => 7 read and listed by their owning group => 5 not accessible at all for everyone else => 0 777 - 750 = 027

asssssaOption: B

i don't know why b

Jubal75Option: B

I say B

HelgaLee

I think this schema would be more easy to get about umask https://en.wikipedia.org/wiki/Umask

eriksealsOption: B

B. 0027

FantaColaOption: B

B. 0027

LazylinuxOption: B

IS correct

iwkno6Option: B

Agreed 0027

CuriousLinuxCatOption: B

Agreed, answer is B. 0027.