XK0-005 · Question #481
XK0-005 Question #481: Real Exam Question with Answer & Explanation
The correct answer is D: setfacl -m g:finance:rw file. {"question_number": 4, "correct_answer": "D", "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. Opt
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
Explanation
{"question_number": 4, "correct_answer": "D", "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.", "generated_by": "claude-sonnet", "llm_judge_score": 5}
Topics
Community Discussion
No community discussion yet for this question.