Exam XK0-005 All QuestionsBrowse all questions from this exam
Question 212

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?

    Correct Answer: B

    To grant the 'accounting' user permission to run a specific command (/opt/acc/report) as root, the sudo configuration file should specify the username (accounting), the hosts the command can be run on (ALL signifies any host), and the command itself. The correct command syntax is 'accounting ALL=/opt/acc/report'. This grants the 'accounting' user the ability to run the /opt/acc/report command as root on any host without specifying additional conditions.

Discussion
mirrblvckOption: C

C %accounting all=