exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 115 discussion

Actual exam question from CompTIA's XK0-005
Question #: 115
Topic #: 1
[All XK0-005 Questions]

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?

  • A. chattr +i file
  • B. chown it:finance file
  • C. chmod 666 file
  • D. setfacl -m g:finance:rw file
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dsmitd33
5 months, 3 weeks ago
Wouldn't C also keep the permissions the same for the IT group while still giving the same permissions to the Finance group as D?
upvoted 1 times
...
bongobo
1 year, 3 months ago
Debian12 / -bash: setfacl: command not found
upvoted 1 times
...
Alizadeh
1 year, 8 months ago
Selected Answer: D
The correct answer is D. setfacl -m g:finance:rw file.
upvoted 1 times
...
linux_admin
2 years, 2 months ago
Selected Answer: D
D. setfacl -m g:finance:rw file: This command sets a new ACL (access control list) on the file that grants read and write access to the finance group. This option would allow the finance department to access the file while also maintaining the existing permissions for IT employees. The + in the rw option means to add read and write permissions to the existing permissions. The g: specifies that the permission is being set for a group, and the finance is the name of the group.
upvoted 3 times
...
KnifeClown1
2 years, 2 months ago
Selected Answer: D
The correct command to fix the access issue while limiting access to IT and finance department employees would be: D. setfacl -m g:finance:rw file This command sets a Access Control List (ACL) for the file with the permission "rw" (read and write) for the group "finance". This would allow the finance department employees to access the file with the necessary permissions, while the IT employees still retain their read and write permissions.
upvoted 2 times
...
TheRealManish
2 years, 5 months ago
Selected Answer: D
if we change the owner to finance, the IT group would then be considered "other" in permissions and have no rights. currently IT has rights,, so using setfacl to give finance RW rights would keep the IT groups, and give finance rights. D
upvoted 2 times
Nvoid
2 years, 5 months ago
good point, i wasn't sure why which would be the right answer, but this actual makes sense. choosing D. here.
upvoted 1 times
...
...
lo_01234_ol
2 years, 5 months ago
Selected Answer: B
chown [owner]:[group] file This would allow rw for both IT and Finance.
upvoted 2 times
lo_01234_ol
2 years, 4 months ago
Changing this to 'D.'
upvoted 1 times
...
TheRealManish
2 years, 5 months ago
I disagree. if we change the owner to finance, the IT group would then be considered "other" in permissions and have no rights. currently IT has rights,, so using setfacl to give finance RW rights would keep the IT groups, and give finance rights. D
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago