Security

The directory /srv/reports is already owned by the group analysts and has mode 770. Files created there by any member must automatically belong to analysts, regardless of the creator's primary group. Which command accomplishes this?

Show the answer

Correct answerC. chmod 2770 /srv/reports

The setgid bit (leading 2) on a directory makes new files inherit the directory's group. The sticky bit (leading 1) is tempting, but it only restricts deletion and renaming to file owners and does not affect group inheritance.