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

  1. 01Write the rule
  2. 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.

← All Linux System Administration labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Delegate a Narrowly Scoped sudo Action — Linux lab | Kube Labs