nerdexam
CompTIA

XK0-005 · Question #94

A company wants to ensure that all newly created files can be modified only by their owners and that all new directory content can be changed only by the creator of the directory. Which of the…

The correct answer is A. umask 0022. Default file permissions are 0666, umask 0022 results in 0644. User has read + write (6). Group and Other has Read (4) only.

System Management

Question

A company wants to ensure that all newly created files can be modified only by their owners and that all new directory content can be changed only by the creator of the directory. Which of the following commands will help achieve this task?

Options

  • Aumask 0022
  • Cchmod -R 0644 /
  • Dchmod -R 0755 /

How the community answered

(25 responses)
  • A
    76% (19)
  • C
    8% (2)
  • D
    16% (4)

Explanation

Default file permissions are 0666, umask 0022 results in 0644. User has read + write (6). Group and Other has Read (4) only.

Topics

#umask#File Permissions#Directory Permissions#Default Permissions

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice