CompTIA Linux+ (XK0-005) — Question 230

The group named support is unable to make changes to the config file. An administrator is reviewing the permissions and sees the following:

$ ls -l config
-rw-rw----. 1 root app 4682 02-15 11:25 config

Which of the following should the administrator execute in order to give the support group access to modify the file while preserving the current ownership?

Answer options

Correct answer: B

Explanation

The correct answer is B because using setfacl allows the administrator to grant the support group read and write permissions to the config file without changing its ownership. Option A would change the group ownership to support, while C would not provide the necessary group permissions, and D would set the setgid bit, which does not grant the desired permissions.