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 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?
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.
C %accounting all=