mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-12-05 01:29:32 +01:00
Merge #863: fix: a server running as root starts Claude, and a headless install gets past sudo
This commit is contained in:
commit
95ad7f2d00
19 files changed
+984
-21
No files matched your search
@@ -110,7 +110,9 @@ approve those steps. With nothing else said, that also installs the first agent
|
||||
catalogue when none is found; `--ai-cli` (or `CODEMAN_AI_CLI`) says which one, or none.
|
||||
`CODEMAN_TAILSCALE=1` preselects the Tailscale answer, and never
|
||||
installs Tailscale itself non-interactively; a non-interactive run never renames the
|
||||
machine and never starts a service. Everything the unattended steps print goes to
|
||||
machine and never starts a service. With no terminal there is nowhere to type a password,
|
||||
so a step that needs `sudo` works only where `sudo` asks for none (a `NOPASSWD` entry, as
|
||||
cloud images and CI runners have). Everything the unattended steps print goes to
|
||||
`~/.codeman/install.log`, and the last lines of it are shown when a step fails.
|
||||
|
||||
### Without administrator rights
|
||||
|
||||
@@ -131,6 +131,17 @@ That prompt comes from Claude Code, not Codeman. Codeman's default is to start w
|
||||
permission prompts skipped, which is what the security model is built around. If you would
|
||||
rather it prompted, change **App Settings → Agents & CLIs → Claude → Startup Mode**.
|
||||
|
||||
### Claude asks for permission although Startup Mode skips the prompts (Codeman runs as root)
|
||||
|
||||
When the Codeman server itself runs as root (common on a VPS and in an LXC container),
|
||||
Claude sessions start without the permission bypass and ask before they act. Claude Code
|
||||
refuses `--dangerously-skip-permissions` under root and exits, which on older versions left
|
||||
every Claude tab with a dead pane (`--dangerously-skip-permissions cannot be used with
|
||||
root/sudo privileges for security reasons`). Codeman now leaves the flag out there and writes
|
||||
one line to the server log for each such launch; the other startup modes are passed through
|
||||
unchanged. Run Codeman as a normal user to get the default back. A session in a Docker case
|
||||
or on a remote host runs under the account on that side, so this does not apply to it.
|
||||
|
||||
### My settings were reset, or a CLI I enabled is gone
|
||||
|
||||
Something rewrote a file in `~/.codeman/` (a hand edit, a restart that loaded a bad file, a
|
||||
|
||||
Reference in new issue
Block a user