Delegate a Narrowly Scoped sudo Action
A support operator should be able to restart one service and nothing else. Write the smallest sudoers rule that does it, and prove the fence holds from the operator's seat.
Skill labbeginner~35 minFree
What you'll do
- ✓Read what a user may run with sudo -l before changing anything
- ✓Write a sudoers drop-in with an exact command and validate it with visudo
- ✓Understand why the operator must not be able to edit what root will run
- ✓Test the allowed action and several denied ones from the operator's account
Lab outline
- 01Write the rule
- 02Prove the fence
Before you start
- Access Control Lists and Inheritance
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.