M16 - Elevation: UAC and sudo
Elevation: UAC and sudo
Understand temporary privilege elevation in Windows and Linux so you can perform administrative work deliberately instead of staying permanently over-privileged.
- Explain what privilege elevation is.
- Recognize common elevation flows in Windows and Linux.
- Adopt safer habits around administrative commands.
Why This Matters
Administrative access is powerful because it bypasses many safety barriers. That is exactly why good systems make you pause before using it.
The right habit is not “always elevate.” The right habit is “elevate when the task truly requires it, then return to normal work.”
1. Windows: UAC Is a Pause Point
Windows User Account Control is designed to interrupt the flow before a privileged action proceeds.
That pause matters because it gives you one more chance to ask:
- did I mean to run this?
- do I trust the program or command?
- am I changing the system, or just my own files?
Common elevation patterns include:
- right-clicking and choosing Run as administrator
- accepting a UAC prompt for a trusted tool
- using admin-capable shells only when the task needs them
Skip this pane on Linux.
2. Linux: sudo Elevates a Specific Command
Linux commonly encourages temporary elevation for one command at a time.
Skip this pane on Windows.
sudo systemctl status ssh
This pattern is safer than living in a root session for unrelated work.
That does not make sudo harmless. It just makes privilege use easier to isolate.
3. A Better Elevation Checklist
Before approving an elevated action, ask:
- Does this command really touch system state?
- Do I understand what it will change?
- Am I on the right machine and in the right directory?
- Do I have a backup or rollback if the change matters?
Healthy Habit
Keep your default session unprivileged. Cross the privilege boundary only when the work clearly requires it.
What to Ignore for Now
- deep sudoers policy management
- Windows enterprise privilege delegation
- full root shell workflows
Those are real topics, but the most important beginner lesson is the decision habit around elevation.
Before You Move On
You are ready for the permissions lab when you can:
- explain why elevation exists
- describe one Windows and one Linux elevation flow
- give a short checklist for deciding whether to elevate
The next step is hands-on permission troubleshooting in a safer practice context.