Exam LFCS All QuestionsBrowse all questions from this exam
Question 106

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.)

    Correct Answer:

    The umask value determines the default permissions for newly created files and directories by subtracting the umask value from the system's default permissions (666 for files and 777 for directories). To achieve default permissions of 600 for files and 700 for directories, you need to subtract these permissions from the defaults: 666 - 600 = 066 and 777 - 700 = 077. Therefore, the correct umask value is 077.

Discussion
Borbz

Answer is correct. 077

rhylos

correct.With umask 007, directories will have permission 770 and new files will have permission 660.