Bird
0
0

Why does sudo require a password by default before running a command?

hard📝 Conceptual Q10 of 15
Linux CLI - Users and Groups
Why does sudo require a password by default before running a command?
ATo slow down command execution
BTo verify the user's identity and prevent unauthorized use
CBecause root user always needs a password
DTo log the command output
Step-by-Step Solution
Solution:
  1. Step 1: Understand sudo security purpose

    Requiring a password ensures only authorized users can run commands as root.

  2. Step 2: Analyze options

    To verify the user's identity and prevent unauthorized use correctly explains the security reason. Others are incorrect or unrelated.

  3. Final Answer:

    To verify the user's identity and prevent unauthorized use -> Option B
  4. Quick Check:

    sudo password = security check [OK]
Quick Trick: Password protects sudo commands [OK]
Common Mistakes:
MISTAKES
  • Thinking password slows commands
  • Confusing root password with sudo
  • Assuming password logs output

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes