CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux administrator needs to grant a few junior administrators the ability to run commands with root privileges using sudo. To maintain manageability and adhere to a common security practice, the administrator decides to use a dedicated group for this purpose. The junior administrators' user accounts have already been created. Which of the following is the most appropriate and standard set of actions to achieve this on an RHEL-based system?

  • Add the users to the wheel group and then uncomment the auth required pam_wheel.so line in the /etc/pam.d/su file.

  • Add the users to the sudo group using usermod and verify the line %sudo ALL=(ALL) ALL is present and uncommented in the /etc/sudoers file.

  • Add the users to the wheel group using usermod and verify the line %wheel ALL=(ALL) ALL is present and uncommented in the /etc/sudoers file.

  • Create a new group, add the users to it, and then create a new file in /etc/sudoers.d/ granting that group sudo privileges.

CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot