Files
moltbot/src/cli
忻役 ca8121d22b fix: add root guard to prevent CLI execution as root (#67478)
Block openclaw CLI from running as root (uid 0) to prevent:
- Separate state directory at /root/.openclaw/
- Conflicting systemd user services racing on port 18789
- Root-owned files in the service user state dir (EACCES)

The guard runs early in src/entry.ts before any state/config operations.
Root-level --help and --version bypass the guard so users can discover
the OPENCLAW_ALLOW_ROOT=1 override. Subcommand help paths still enforce
the guard since they enter runCli() and resolve state directories.

Closes #67478
2026-05-07 23:31:03 -04:00
..
2026-05-01 22:05:19 +01:00
2026-05-04 03:31:55 -07:00
2026-05-01 22:08:43 +01:00
2026-05-02 01:11:18 +01:00
2026-04-26 10:41:03 +01:00