exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 229 discussion

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

A Linux administrator is creating a new sudo profile for the accounting user. Which of the following should be added by the administrator to the sudo configuration file so that the accounting user can run /opt/acc/report as root?

  • A. accounting localhost=/opt/acc/report
  • B. accounting ALL=/opt/acc/report
  • C. %accounting ALL=(ALL) NOPASSWD: /opt/acc/report
  • D. accounting /opt/acc/report=(ALL) NOPASSWD: ALL
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Mistermiyagi
3 weeks, 1 day ago
Selected Answer: C
I wonder if the answers have a typo cause C is almost right but the % sign makes it a group and not a specific user. B only allows the user to execute that command but it doesnt specify root. (ALL) would allow the user to run it as root or another user.
upvoted 1 times
...
Qubert2
6 months, 3 weeks ago
Selected Answer: B
The percent sign % before the name indicates that it's a group. In this question, we want an individual user.
upvoted 2 times
...
mirrblvck
10 months ago
C %accounting all=
upvoted 2 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