Recover admin access
Last updated: 20 September 2026
Goal: Restore Sandman admin access without SSH when Entra assignments are wrong.
- Entra — Create or fix the admin app role and assign yourself under Enterprise applications → Users and groups.
- Azure Portal → VM → Networking — Add a temporary inbound rule: port 8091, source your admin IP (
x.x.x.x/32). - Azure Portal → VM → Run command — Run:
sudo sandman config enable. Copy the maintenance token and URL from the output. - Browser — Open the URL, paste the token if prompted, update admin authorization in Settings, click Apply changes.
- Run command — Run:
sudo sandman config disable - Networking — Remove the temporary port 8091 rule.
Verify: Sign in at https://<your-host>/ with admin navigation visible. SSH (sudo sandman config enable) remains available as break-glass.