nerdexam
CompTIA

XK0-006 · Question #106

A systems administrator receives reports from users who are having issues while trying to modify newly created files in a shared directory. The administrator sees the following outputs: Which of the…

The correct answer is D. Adding a setgid bit to the group in the shared folder. Setting the setgid bit on the shared directory ensures that all newly created files and subdirectories inherit the directory’s group ownership, allowing all group members to modify files consistently without manual intervention.

Troubleshooting

Question

A systems administrator receives reports from users who are having issues while trying to modify newly created files in a shared directory. The administrator sees the following outputs:

Which of the following provides the best resolution to this issue?

Exhibit

XK0-006 question #106 exhibit

Options

  • AAdding a setuid bit to the user in the shared folder
  • BManually changing the group of the newly created files
  • CChanging all directory contents to be writable and readable for everyone
  • DAdding a setgid bit to the group in the shared folder

How the community answered

(49 responses)
  • A
    2% (1)
  • B
    12% (6)
  • C
    6% (3)
  • D
    80% (39)

Explanation

Setting the setgid bit on the shared directory ensures that all newly created files and subdirectories inherit the directory’s group ownership, allowing all group members to modify files consistently without manual intervention.

Topics

#setgid#shared directory#special permissions#file ownership

Community Discussion

No community discussion yet for this question.

Full XK0-006 Practice