HOW must you set umask?

You want the default permissions for your files to be -rw-r—– .

HOW must you set umask?

You want the default permissions for your files to be -rw-r—– .

HOW must you set umask?

A.
037

B.
640

C.
038

D.
027

Explanation/Reference:
A) removes the directory permission g-x making the g+r permission pointless
B) would result in –x-wxrwx, which is not what we want
C) is not a octal number used for umask



Leave a Reply 11

Your email address will not be published. Required fields are marked *


liti

liti

Correct Answer: D

Eric Hibshman

Eric Hibshman

the comment box is not for the answers

Sini

Sini

-rw-r—– should be 137

GG

GG

For directories, the base permissions are (rwxrwxrwx) 0777 and for files they are 0666 (rw-rw-rw).

Therefore umask 027 is correct.

TT

TT

027 is correct. However the explanation seems slightly out of context as the question does not refer to symbolic mode action.

networkmanagers

networkmanagers

I have the same idea.

Erwin

Erwin

Answer should be 026

Default filepermission: 666 – 640 = 026

Fin

Fin

The default for a new directory is 777(rwxrwxrwx). 777-750 = 027

Fin

Fin

It must be 027 because you want to set the default permissions for (all) your files. So you need to edit the umask for your directory.

ogsenseii

ogsenseii

I have been saying the same thing

Erwin

Erwin

but 026 is not listed as an answer, you should pick 027 which also give the correct permission