Last active 24 minutes ago
Synced from claude-config/scripts/create-agent-user.sh — do not edit directly, changes are overwritten on the next sync.
0
0
1
| 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # create-agent-user.sh |
| 4 | # ----------------------------------------------------------------------------- |
| 5 | # Provision a local `agent-user` account on a Linux host so an AI agent can be |
| 6 | # handed full (sudo) access to the machine over SSH. |
| 7 | # |
| 8 | # What it does, in order: |
| 9 | # 1. Refuses to run unless invoked as root and an SSH server is running. |
| 10 | # 2. Detects the distro family (Debian/Ubuntu, Fedora/RHEL, Arch/CachyOS). |