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



Answer: 0077

題解

「umask」指令可以指定目前建立目錄或是檔案的權限預設值。umask的數字是表示「要移除」的權限。在umask為「0000」的情形下,普通檔案預設的權限為「-rw-rw-rw-」(666),目錄預設的權限為「drwxrwxrwx」(777)。這題要移除的權限為群組和其他人的所有權限,用umask數字表示就是「0077」。