exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 342 discussion

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

A Linux administrator is configuring a log collector agent to monitor logs in /var/log/collector. The agent is reporting that it cannot write in the directory. The agent runs as the logger user account. The administrator runs a few commands and reviews the following output:

Output 1:



Output 2:
* file: /var/log/collector
* owner: root
* group: root
user::rwx
group::r-x
mask::rwx
other::r-x
default:user:rwx
default:group::r-x
default:mask::rwx
default:other::r-x

Output 3:
uid=1010(logger) gid=1010(monitor) groups=1010(monitor)

Which of the following is the best way to resolve the issue?

  • A. setfacl -Rm u:logger:rw /var/log/collector
  • B. usermod -aG root logger
  • C. chmod 644 /var/log/collector
  • D. chown -R logger:monitor /var/log
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
ID77
5 days, 9 hours ago
Selected Answer: A
To grant write access without modifying the existing ownership is to use ACLs.It grants only the required permissions.
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