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=(root) PASSWORD: ALLjane ALL=(ALL) ALLjane (ALL) PASSWORD: ALLjane ALL=(root) ALLjane ALL=(ALL) PASSWORD: ALL
Question
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=(root) PASSWORD: ALLjane ALL=(ALL) ALLjane (ALL) PASSWORD: ALLjane ALL=(root) ALLjane ALL=(ALL) PASSWORD: ALL
Solution
The correct entry to add to the sudoers file to grant a user named "jane" the ability to run any command as root but with a password prompt is:
jane ALL=(ALL) PASSWD: ALL
This entry means that user "jane" on "ALL" hosts, as "ALL" users and "ALL" groups, may run "ALL" commands, but a password will be required (PASSWD).
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 Marks john ALL=/path/to/command NOPASSWD:john ALL=(ALL) NOPASSWD: /path/to/commandjohn ALL=(root) NOPASSWD: /path/to/commandjohn (ALL) NOPASSWD: /path/to/commandjohn ALL=(ALL) /path/to/command NOPASSWD
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 MarksALL developers=(ALL) NOPASSWD: ALLdevelopers ALL=(ALL) NOPASSWD: ALL%developers ALL=(ALL) NOPASSWD: ALLdevelopers ALL=(ALL) NOPASSWD: *ALL=(ALL) NOPASSWD: developers ALL
You have a script located at "/usr/local/bin/myscript.sh" that should be run by anyone in the "staff" group as root without a password prompt. What entry should you add to the sudoers file?1.0 MarksALL staff=(ALL) NOPASSWD: /usr/local/bin/myscript.shALL=(ALL) NOPASSWD: /usr/local/bin/myscript.sh staffstaff /usr/local/bin/myscript.sh (ALL) NOPASSWD:staff ALL=(ALL) /usr/local/bin/myscript.sh NOPASSWD:staff ALL=(ALL) NOPASSWD: /usr/local/bin/myscript.sh
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
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
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.