You must allow the user named "techuser" to run any command as any user and any group on this Linux server. Using visudo, which single line should you add to /etc/sudoers to meet this requirement?
grants full sudo privileges. The first ALL lets the rule apply when techuser logs in from any host (useful if the same file is deployed on multiple systems). The run-as specification (ALL:ALL) permits techuser to execute commands as any target user and any target group, covering both sudo -u and sudo -g options. The final ALL allows every command.
Incorrect entries:
techuser ALL=(ALL) ALL - permits any user but not arbitrary groups, so it fails the group requirement.
techuser ANY=(ALL:ALL) NOPASSWD: ALL - "ANY" is not valid syntax and NOPASSWD removes the password prompt, which was not requested.
ALL techuser=(ALL:ALL) ALL - misorders the fields; the user must come first, followed by the host list and an equals sign.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the syntax '(ALL:ALL)' mean in a sudoers file?
Open an interactive chat with Bash
Why is 'techuser ALL=(ALL) ALL' considered incorrect?
Open an interactive chat with Bash
What is the purpose of the 'NOPASSWD' option in a sudoers file?