Knowee
Questions
Features
Study Tools

You need to restrict a user named "anna" to only run a specific command with elevated privileges, and you want to log all her activities. Which entry should you add to the sudoers file?1.0 Marksanna ALL=(ALL) /path/to/commandanna ALL=(root) /path/to/command, /usr/bin/loggeranna /path/to/command, /usr/bin/logger (ALL)anna /path/to/command (ALL) LOGanna ALL=(ALL) NOPASSWD: /path/to/command

Question

You need to restrict a user named "anna" to only run a specific command with elevated privileges, and you want to log all her activities. Which entry should you add to the sudoers file?1.0 Marksanna ALL=(ALL) /path/to/commandanna ALL=(root) /path/to/command, /usr/bin/loggeranna /path/to/command, /usr/bin/logger (ALL)anna /path/to/command (ALL) LOGanna ALL=(ALL) NOPASSWD: /path/to/command

🧐 Not the exact question you are looking for?Go ask a question

Solution

The correct entry to add to the sudoers file would be:

anna ALL=(ALL) /path/to/command, /usr/bin/logger

This entry allows the user "anna" to run the specific command located at "/path/to/command" with elevated privileges (as any user, including root, hence the ALL=(ALL) part). Additionally, it allows her to run the "/usr/bin/logger" command, which is used to log all her activities.

Similar Questions

You need to grant a user named "john" permission to run a specific command as root without a password prompt. Which entry should you add to the sudoers file?1.0 Marksjohn ALL=(ALL) NOPASSWD: /path/to/commandjohn ALL=(root) NOPASSWD: /path/to/command john ALL=/path/to/command NOPASSWD:john (ALL) NOPASSWD: /path/to/commandjohn ALL=(ALL) /path/to/command NOPASSWDClear Answer

You want to grant a user named "jane" the ability to run any command as root but with a password prompt. Which entry should you add to the sudoers file?1.0 Marksjane ALL=(ALL) ALLjane ALL=(root) PASSWORD: ALLjane ALL=(ALL) PASSWORD: ALLjane (ALL) PASSWORD: ALLjane ALL=(root) ALL

You want to grant a group called "developers" the ability to run any command as root without a password prompt. What entry should be added to the sudoers file?1.0 Marksdevelopers ALL=(ALL) NOPASSWD: ALLALL developers=(ALL) NOPASSWD: ALLdevelopers ALL=(ALL) NOPASSWD: *ALL=(ALL) NOPASSWD: developers ALL%developers ALL=(ALL) NOPASSWD: ALL

In Linux the sudo command is used toGroup of answer choicesSubstitute one users privileges for anotherRun programs with the security privileges of root"Login as another user, usually root"Elevate the privilege of the command being run

Larry manages a Linux server. Occasionally, he needs to run commands that require root-level privileges. Management wants to ensure that an attacker cannot run these commands if the attacker compromises Larry’s account. Which of the following is the best choice?Group of answer choicesGrant Larry sudo access.Add Larry’s account to the LocalSystem account.Give Larry the root password.Add Larry’s account to the administrator’s group.

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.