XK0-005 · Question #481
Employees in the finance department are having trouble accessing the file /opt/work/file. All IT employees can read and write the file. Systems administrator reviews the following output: Which of…
The correct answer is D. setfacl -m g:finance:rw file. The correct fix is setfacl -m g:finance:rw file, which uses POSIX Access Control Lists (ACLs) to grant read/write access to the finance group without altering the base file permissions that already allow IT access. Option A (chattr +i) makes the file immutable - no one could…
Question
Employees in the finance department are having trouble accessing the file /opt/work/file. All IT employees can read and write the file. Systems administrator reviews the following output:
Which of the following commands would permanently fix the access issue while limiting access to IT and finance department employees?
Options
- Achattr +i file
- Bchown it:finance file
- Cchmod 666 file
- Dsetfacl -m g:finance:rw file
How the community answered
(52 responses)- A12% (6)
- B8% (4)
- C2% (1)
- D79% (41)
Explanation
The correct fix is setfacl -m g:finance:rw file, which uses POSIX Access Control Lists (ACLs) to grant read/write access to the finance group without altering the base file permissions that already allow IT access. Option A (chattr +i) makes the file immutable - no one could write to it. Option B (chown it:finance) can only assign one group as the owning group. Option C (chmod 666) gives read/write to all users on the system, which violates the requirement to limit access to IT and finance only. ACLs allow multiple groups to be granted fine-grained permissions simultaneously.
Topics
Community Discussion
No community discussion yet for this question.