NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 30 min
Master the /etc/sudoers file and learn how attackers abuse sudo misconfigurations to escalate privileges. Explore Mandatory Access Control (MAC) frameworks like SELinux and AppArmor that restrict even the root user.
Sometimes a normal user must run one admin command, such as restarting a web server, without getting full root access. sudo ("superuser do") does that. Its rules decide exactly who may run what. A badly written rule is one of the easiest ways to get root.
Mandatory Access Control (MAC) frameworks such as SELinux and AppArmor add a second layer: kernel rules that limit what a program may do, even when it runs as root.
The rules are in /etc/sudoers and in files in /etc/sudoers.d/ (included by the line @includedir /etc/sudoers.d).
Always edit them with visudo. A syntax error in this file can break sudo for everyone, and then you may have no way to become root to fix it. visudo locks the file, opens it in an editor, and checks the syntax before it saves. If there is an error, it tells you and does not save the broken version.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign inWindows Fundamentals
The Windows Fundamentals learning path provides a comprehensive foundation in Microsoft Windows operating systems, speci
ViewLinux Fundamentals for Cybersecurity
Linux is the backbone of modern cybersecurity. Whether you are defending enterprise servers, analyzing malware, or launc
ViewCybersecurity Foundations
Every great security professional starts with a rock-solid foundation. The Cybersecurity Foundations learning path is de
ViewThreat Detection and Intelligence
The Threat Detection & Intelligence Learning Path is designed to elevate security professionals from reactive alert resp
ViewNetwork Services Administration
This comprehensive learning path bridges the gap between foundational networking and enterprise infrastructure security.
ViewNetwork Troubleshooting and Monitoring
This comprehensive learning path dives deep into the methodologies, tools, and best practices for diagnosing, troublesho
View