# witcheer's Wingtips #40: give your local agent two commands, not root

Written by [witcheer](https://x.com/witcheer) at Nous Research. Republished with credit.

Canonical: https://hermeswatcher.com/wingtips/40  
Published: 2026-08-07  
[Original](https://notwitcheer.github.io/hermes-recipes/wingtips/40-give-your-local-agent-two-commands-not-root/) · [On X](https://x.com/witcheer/status/2085640740353233270) · [Full collection](https://notwitcheer.github.io/hermes-recipes/) · [Official docs](https://hermes-agent.nousresearch.com/docs/user-guide/security)

[Source Markdown](https://raw.githubusercontent.com/notwitcheer/hermes-recipes/8653fb699a137a32e81936fa33cabacd3f4f2095/docs/wingtips/40-give-your-local-agent-two-commands-not-root.md): use this file as the base for relative links in the verbatim text below.

Sources: [Hermes docs: Security](https://hermes-agent.nousresearch.com/docs/user-guide/security)


Hermes Wingtips #40: give your local agent two commands, not root

when I'm running benchmarks, my local Hermes Agent stops and starts the model server on its own, from cron, with no password. it still cannot touch anything else as root.

the trick is a sudoers rule scoped to exactly one service: NOPASSWD applies to systemctl start and stop for that unit, nothing more.

still test the fence from the outside: sudo -n on any other service should still ask for a password.
