CompTIA Linux+ (XK0-004) — Question 266
An administrator needs to allow additional specific users and groups to have access to a folder without removing the original owner or group. Which of the following commands should the administrator use to complete this task?
Answer options
- A. setenforce
- B. setfacl
- C. chmod
- D. chown
Correct answer: B
Explanation
The correct command is setfacl, which is used to set Access Control Lists (ACLs) on files and directories, allowing administrators to give specific permissions to additional users and groups without altering the existing ownership. The other options do not serve this purpose: setenforce controls SELinux modes, chmod adjusts standard file permissions, and chown changes the owner of the file.