Bird
0
0

Which user can run commands with sudo by default?

easy📝 Conceptual Q2 of 15
Linux CLI - Users and Groups
Which user can run commands with sudo by default?
AAny user without restrictions
BOnly users in the 'users' group
COnly the root user
DUsers listed in the sudoers file
Step-by-Step Solution
Solution:
  1. Step 1: Understand sudoers file role

    The sudoers file controls which users can use sudo.

  2. Step 2: Analyze options

    Only users in the sudoers file can run commands with sudo. Root user doesn't need sudo. Not all users have access.

  3. Final Answer:

    Users listed in the sudoers file -> Option D
  4. Quick Check:

    sudo access = sudoers file users [OK]
Quick Trick: Check sudoers file for allowed users [OK]
Common Mistakes:
  • Assuming all users can sudo
  • Confusing root with sudo user
  • Thinking group 'users' controls sudo

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes