nerdexam
CompTIA

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…

Troubleshooting

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)
  • A
    12% (6)
  • B
    8% (4)
  • C
    2% (1)
  • D
    79% (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

#File permissions#ACLs#Linux commands#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice