CompTIA Linux+ XK0-006 (V8) Practice Question

On a freshly installed Ubuntu 22.04 server you create a user called alex and add the account to the sudo group with:

sudo usermod -aG sudo alex

After logging out and back in, alex can run sudo apt update even though neither /etc/sudoers nor any file in /etc/sudoers.d has been edited.
Which explanation correctly describes why this procedure works?

  • Members of the sudo group are automatically assigned UID 0 in /etc/passwd, giving them root privileges without needing sudo or a password.

  • A built-in polkit rule maps the sudo group to the wheel role, providing password-less root access only from the system console.

  • The default /etc/sudoers file contains the entry %sudo ALL=(ALL:ALL) ALL, so any user added to the sudo group may execute any command with sudo after entering their own password.

  • When a session is started by a sudo group member, PAM grants the CAP_SYS_ADMIN capability to all of the user's processes, eliminating the need for sudo.

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