StudyToCert

All certifications / Linux+ / Lessons

CompTIA Linux+ XK0-006 · Domain 3: Security

Privilege escalation: sudo, visudo, /etc/sudoers.d, su, polkit

▶ Watch the overview video

Last reviewed September 30, 2026 · Leer en español

Logging in as root for daily work is risky: every typo runs with full power, and actions are not tied to a person. Instead, administrators use normal accounts and elevate privileges only when needed, following the principle of least privilege. Linux+ tests the tools for this and calls it privilege escalation; in security reports the same phrase also describes an attacker gaining more rights than intended, often by abusing a badly written sudo rule, so the two meanings are closely linked.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Linux+ for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Linux+ study plan