フリー問題

CompTIA Linux+ のフリー問題 8 / 20 問目

問題文

A default file creation mask of 022 is in effect. A program creates a regular file requesting mode 666. What permissions does the resulting file have, and why?

選択肢

  1. Mode 666, because the mask applies only to directories, and a regular file keeps every bit the program requested.
  2. Mode 644, because the bits present in the mask are turned off from the requested mode.
  3. Mode 022, because the mask replaces the requested mode entirely whenever the requesting program does not have administrative privileges, which is why unprivileged programs cannot create files with permissive modes.
  4. Mode 755, because the execute bit is added for the owner on every new file, and the mask is applied afterward only to the group and other bits.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。